aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other
diff options
context:
space:
mode:
Diffstat (limited to 'test/Other')
-rwxr-xr-xtest/Other/Inputs/block-info-only.bcbin0 -> 64 bytes
-rw-r--r--test/Other/Inputs/has-block-info.bcbin0 -> 108 bytes
-rwxr-xr-xtest/Other/Inputs/no-block-info.bcbin0 -> 48 bytes
-rw-r--r--test/Other/bcanalyzer-block-info.txt32
-rw-r--r--test/Other/link-opts.ll13
-rw-r--r--test/Other/lit-unicode.txt3
6 files changed, 35 insertions, 13 deletions
diff --git a/test/Other/Inputs/block-info-only.bc b/test/Other/Inputs/block-info-only.bc
new file mode 100755
index 0000000..e30ca5f
--- /dev/null
+++ b/test/Other/Inputs/block-info-only.bc
Binary files differ
diff --git a/test/Other/Inputs/has-block-info.bc b/test/Other/Inputs/has-block-info.bc
new file mode 100644
index 0000000..1815db6
--- /dev/null
+++ b/test/Other/Inputs/has-block-info.bc
Binary files differ
diff --git a/test/Other/Inputs/no-block-info.bc b/test/Other/Inputs/no-block-info.bc
new file mode 100755
index 0000000..e79c276
--- /dev/null
+++ b/test/Other/Inputs/no-block-info.bc
Binary files differ
diff --git a/test/Other/bcanalyzer-block-info.txt b/test/Other/bcanalyzer-block-info.txt
new file mode 100644
index 0000000..e660312
--- /dev/null
+++ b/test/Other/bcanalyzer-block-info.txt
@@ -0,0 +1,32 @@
+RUN: llvm-bcanalyzer -dump %S/Inputs/has-block-info.bc | FileCheck -check-prefix=CHECK -check-prefix=DATA %s
+RUN: llvm-bcanalyzer -dump %S/Inputs/no-block-info.bc | FileCheck -check-prefix=UNKNOWN -check-prefix=DATA %s
+RUN: llvm-bcanalyzer -dump %S/Inputs/no-block-info.bc -block-info %S/Inputs/block-info-only.bc | FileCheck -check-prefix=CHECK -check-prefix=DATA %s
+
+ CHECK: <ABC
+UNKNOWN: <UnknownBlock8
+ DATA: NumWords=4 BlockCodeSize=2>
+ CHECK: <AAA
+UNKNOWN: <UnknownCode0
+ DATA: op0=42 op1=43 op2=44/>
+ CHECK: <BBB
+UNKNOWN: <UnknownCode1
+ DATA: op0=42/>
+ CHECK: <AAA
+UNKNOWN: <UnknownCode0
+ DATA: op0=42/>
+ CHECK: </ABC>
+UNKNOWN: </UnknownBlock8>
+ CHECK: <XYZ
+UNKNOWN: <UnknownBlock9
+ DATA: NumWords=3 BlockCodeSize=3>
+ CHECK: <XXX
+UNKNOWN: <UnknownCode0
+ DATA: abbrevid=4 op0=50 op1=4/>
+ CHECK: <YYY
+UNKNOWN: <UnknownCode1
+ DATA: op0=42/>
+ CHECK: <XXX
+UNKNOWN: <UnknownCode0
+ DATA: abbrevid=4 op0=50 op1=5/>
+ CHECK: </XYZ>
+UNKNOWN: </UnknownBlock9>
diff --git a/test/Other/link-opts.ll b/test/Other/link-opts.ll
deleted file mode 100644
index 8e58ac8..0000000
--- a/test/Other/link-opts.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-;RUN: opt -S -std-link-opts < %s | FileCheck %s
-; Simple test to check that -std-link-opts keeps only the main function.
-
-; CHECK-NOT: define
-; CHECK: define void @main
-; CHECK-NOT: define
-define void @main() {
- ret void
-}
-
-define void @foo() {
- ret void
-}
diff --git a/test/Other/lit-unicode.txt b/test/Other/lit-unicode.txt
new file mode 100644
index 0000000..ca92c99
--- /dev/null
+++ b/test/Other/lit-unicode.txt
@@ -0,0 +1,3 @@
+REQUIRES: shell
+RUN: echo "ようこそ" | FileCheck %s
+CHECK: {{^}}ようこそ{{$}}