| 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..1259b16ac005c83b5e175f09bbfd185a2f42166c
|
| --- /dev/null
|
| +++ b/test/MC/X86/nacl-autosandbox/scratch-invalidate.s
|
| @@ -0,0 +1,11 @@
|
| +// RUN: not llvm-mc -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
|
|
|