Index: test/MC/X86/nacl-autosandbox/scratch-clear-2reg.s |
diff --git a/test/MC/X86/nacl-autosandbox/scratch-clear-2reg.s b/test/MC/X86/nacl-autosandbox/scratch-clear-2reg.s |
new file mode 100644 |
index 0000000000000000000000000000000000000000..18c8dd1c068d85dcef67e388c229e0b89b33f3c1 |
--- /dev/null |
+++ b/test/MC/X86/nacl-autosandbox/scratch-clear-2reg.s |
@@ -0,0 +1,12 @@ |
+// RUN: not llvm-mc -nacl-enable-auto-sandboxing -filetype asm -triple i386-unknown-nacl %s 2>&1 | FileCheck %s |
+ |
+// Tests a more complicated sequence of .scratch/.clear_scratch, and checks that |
+// clear_scratch clears both registers. |
+ |
+.scratch %ecx |
+.scratch_clear |
+.scratch %ecx |
+.scratch %edx |
+.scratch_clear |
+ ret |
+ // CHECK: No scratch registers |