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

Side by Side Diff: test/MC/X86/nacl-autosandbox/scratch-invalidate-implicit.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 unified diff | Download patch
OLDNEW
(Empty)
1 // RUN: not llvm-mc -nacl-enable-auto-sandboxing -filetype asm -triple x86_64-un known-nacl %s 2>&1 | FileCheck %s
2
3 .scratch %rdx
4 mov (%rax, %rbx), %rax
5 // div overwrites %edx implicitly.
6 div %ebx
7 ret
8 // Checking both stdout and stderr is unreliable because of the ordering, so
9 // check that the error message refers to the ret and not the mov
10 // CHECK: No scratch registers
11 // CHECK-NOT: mov
12 // CHECK: ret
OLDNEW
« no previous file with comments | « test/MC/X86/nacl-autosandbox/scratch-invalidate.s ('k') | test/MC/X86/nacl-autosandbox/scratch-pushpop.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698