| Index: test/MC/X86/nacl-autosandbox/scratch-invalidate-implicit.s
|
| diff --git a/test/MC/X86/nacl-autosandbox/scratch-invalidate-implicit.s b/test/MC/X86/nacl-autosandbox/scratch-invalidate-implicit.s
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5dc11a26bc4e4ed918bade948eba5c18e37f981d
|
| --- /dev/null
|
| +++ b/test/MC/X86/nacl-autosandbox/scratch-invalidate-implicit.s
|
| @@ -0,0 +1,12 @@
|
| +// RUN: not llvm-mc -filetype asm -triple x86_64-unknown-nacl %s 2>&1 | FileCheck %s
|
| +
|
| +.scratch %rdx
|
| + mov (%rax, %rbx), %rax
|
| + // div overwrites %edx implicitly.
|
| + div %ebx
|
| + 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
|
|
|