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

Unified Diff: test/NaCl/ARM/blx-sandboxing.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 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
« no previous file with comments | « test/NaCl/ARM/avoid-aeabi-functions.ll ('k') | test/NaCl/ARM/bx-sandboxing.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/ARM/blx-sandboxing.ll
diff --git a/test/NaCl/ARM/blx-sandboxing.ll b/test/NaCl/ARM/blx-sandboxing.ll
new file mode 100644
index 0000000000000000000000000000000000000000..3a2887ab967a15cac0f32df275a3fffef51d5216
--- /dev/null
+++ b/test/NaCl/ARM/blx-sandboxing.ll
@@ -0,0 +1,17 @@
+; RUN: pnacl-llc -mtriple=armv7-unknown-nacl -filetype=obj %s -o - \
+; RUN: | llvm-objdump -disassemble -triple armv7 - | FileCheck %s
+
+define i32 @foobar(i32 %aa, i32 %bb, i32 (i32)* %f) nounwind {
+entry:
+ %aa.addr = alloca i32, align 4
+ %bb.addr = alloca i32, align 4
+ %f.addr = alloca i32 (i32)*, align 8
+ %0 = load i32 (i32)** %f.addr, align 8
+ %1 = load i32* %aa.addr, align 4
+ %call1 = call i32 %0(i32 %1)
+; CHECK: bic r1, r1, #3221225487
+; CHECK-NEXT: blx r1
+ ret i32 %call1
+}
+
+
« no previous file with comments | « test/NaCl/ARM/avoid-aeabi-functions.ll ('k') | test/NaCl/ARM/bx-sandboxing.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698