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

Unified Diff: test/NaCl/ARM/simple-load-store_sandboxing1.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/neon-vstlane-sandboxing.ll ('k') | test/NaCl/ARM/sp-arithmetic-sandboxing1.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/ARM/simple-load-store_sandboxing1.ll
diff --git a/test/NaCl/ARM/simple-load-store_sandboxing1.ll b/test/NaCl/ARM/simple-load-store_sandboxing1.ll
new file mode 100644
index 0000000000000000000000000000000000000000..062f104dc5f6d7d7991e0a3418141882503cc9a0
--- /dev/null
+++ b/test/NaCl/ARM/simple-load-store_sandboxing1.ll
@@ -0,0 +1,27 @@
+; RUN: pnacl-llc -mtriple=armv7-unknown-nacl -filetype=obj %s -o - \
+; RUN: | llvm-objdump -disassemble -triple armv7 - | FileCheck %s
+
+define void @foo(i32* %input, i32* %output) nounwind {
+entry:
+ %input.addr = alloca i32*, align 4
+ %output.addr = alloca i32*, align 4
+ store i32* %input, i32** %input.addr, align 4
+ store i32* %output, i32** %output.addr, align 4
+ %0 = load i32** %input.addr, align 4
+ %1 = load i32* %0, align 4
+
+; CHECK: bic r0, r0, #3221225472
+; CHECK-NEXT: ldr r0, [r0]
+
+ %add = add nsw i32 %1, 4
+ %2 = load i32** %output.addr, align 4
+ store i32 %add, i32* %2, align 4
+
+; CHECK: bic r1, r1, #3221225472
+; CHECK-NEXT: str r0, [r1]
+
+ ret void
+}
+
+
+
« no previous file with comments | « test/NaCl/ARM/neon-vstlane-sandboxing.ll ('k') | test/NaCl/ARM/sp-arithmetic-sandboxing1.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698