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

Unified Diff: test/MC/ARM/nacl-autosandbox/branch.s

Issue 1269273002: Auto sandboxing: control flow expansions for ARM (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: fixed branch through sp 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/ARM/nacl-autosandbox/branch.s
diff --git a/test/MC/ARM/nacl-autosandbox/branch.s b/test/MC/ARM/nacl-autosandbox/branch.s
new file mode 100644
index 0000000000000000000000000000000000000000..88850bd2c6e11cef5301dcbafa6f5caf18f14492
--- /dev/null
+++ b/test/MC/ARM/nacl-autosandbox/branch.s
@@ -0,0 +1,34 @@
+// RUN: llvm-mc -filetype asm -triple armv7-unknown-nacl %s | FileCheck %s
+
+foo:
+
+ b foo
+//CHECK: b foo
+
+ bx r0
+//CHECK: .bundle_lock
+//CHECK-NEXT: bic r0, r0, #-1073741809
+//CHECK-NEXT: bx r0
+//CHECK-NEXT: .bundle_unlock
+
+ bx sp
+//CHECK: bx sp
+
+ bx pc
+//CHECK: bx pc
+
+
+ bne foo
+//CHECK: bne foo
+
+ bxne r0
+//CHECK: .bundle_lock
+//CHECK-NEXT: bicne r0, r0, #-1073741809
+//CHECK-NEXT: bxne r0
+//CHECK-NEXT: .bundle_unlock
+
+ bxne sp
+//CHECK: bxne sp
+
+ bxne pc
+//CHECK: bxne pc

Powered by Google App Engine
This is Rietveld 408576698