Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: tests_lit/llvm2ice_tests/unknown-arm-reg.ll

Issue 1571433004: Implements include/exclude register lists for translation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests_lit/assembler/arm32/vadd.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9878b3433366535ba8212fa5781e5d7e87519ac9
--- /dev/null
+++ b/tests_lit/llvm2ice_tests/unknown-arm-reg.ll
@@ -0,0 +1,13 @@
+; 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,yy28 -reg-exclude s1,sq5 2>&1 \
+; RUN: | FileCheck %s
+
+define void @foo() {
+ ret void
+}
+
+; CHECK: LLVM ERROR: Unrecognized use/exclude registers: xx9x yy28 sq5
+
« no previous file with comments | « tests_lit/assembler/arm32/vadd.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698