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

Unified Diff: test/MC/X86/nacl-autosandbox/scratch-invalidate.s

Issue 1274223003: Auto-sandboxing: Switch to automatic scratch register invalidation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: add flag to tests Created 5 years, 4 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
Index: test/MC/X86/nacl-autosandbox/scratch-invalidate.s
diff --git a/test/MC/X86/nacl-autosandbox/scratch-invalidate.s b/test/MC/X86/nacl-autosandbox/scratch-invalidate.s
new file mode 100644
index 0000000000000000000000000000000000000000..6660c9bdf5c58d5dc164db405c7ca1e23c5571e9
--- /dev/null
+++ b/test/MC/X86/nacl-autosandbox/scratch-invalidate.s
@@ -0,0 +1,11 @@
+// RUN: not llvm-mc -nacl-enable-auto-sandboxing -filetype asm -triple x86_64-unknown-nacl %s 2>&1 | FileCheck %s
+
+.scratch %ecx
+ mov (%rax, %rbx), %rax
+ mov %eax, %ecx
+ ret
+// Checking both stdout and stderr is unreliable because of the ordering, so
+// check that the error message refers to the ret and not the mov
+// CHECK: No scratch registers
+// CHECK-NOT: mov
+// CHECK: ret
« no previous file with comments | « test/MC/X86/nacl-autosandbox/scratch-invalid-stack.s ('k') | test/MC/X86/nacl-autosandbox/scratch-invalidate-implicit.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698