Index: tests_lit/llvm2ice_tests/unknown-arm-reg.ll |
diff --git a/tests_lit/llvm2ice_tests/unknown-arm-reg.ll b/tests_lit/llvm2ice_tests/unknown-arm-reg.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..64365e46639244b0ef0eb8d9578af5f4116ddacb |
--- /dev/null |
+++ b/tests_lit/llvm2ice_tests/unknown-arm-reg.ll |
@@ -0,0 +1,19 @@ |
+; Show that we complain if an unknown register is specified on the command line. |
+ |
+; Compile using standalone assembler. |
+; RUN: %p2i --expect-fail --filetype=asm -i %s --target=arm32 --args -Om1 \ |
+; RUN: -reg-use r2,xx9x,r5 2>&1 \ |
+; RUN: | FileCheck %s --check-prefix=USE |
+ |
+; Compile using standalone assembler. |
+; RUN: %p2i --expect-fail --filetype=asm -i %s --target=arm32 --args -Om1 \ |
+; RUN: -reg-exclude r2,xx9x,r5 2>&1 \ |
+; RUN: | FileCheck %s --check-prefix=EXC |
+ |
+define void @foo() { |
+ ret void |
+} |
+ |
+; USE: LLVM ERROR: Can't find register use: xx9x |
Jim Stichnoth
2016/01/15 00:50:56
If you take my suggestion about reporting *all* bo
Karl
2016/01/15 16:54:25
Done.
|
+; EXC: LLVM ERROR: Can't find register exclude: xx9x |
+ |
Jim Stichnoth
2016/01/15 00:50:56
Delete trailing whitespace (blank line).
Karl
2016/01/15 16:54:25
Done.
|