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

Unified Diff: test/NaCl/Bitcode/pnacl-bcdis/alloca.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/Bitcode/null.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/binops.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/Bitcode/pnacl-bcdis/alloca.ll
diff --git a/test/NaCl/Bitcode/pnacl-bcdis/alloca.ll b/test/NaCl/Bitcode/pnacl-bcdis/alloca.ll
new file mode 100644
index 0000000000000000000000000000000000000000..4be2914a2d5112a69920c588f1b0f0ff58896455
--- /dev/null
+++ b/test/NaCl/Bitcode/pnacl-bcdis/alloca.ll
@@ -0,0 +1,21 @@
+; Test alloca instructions.
+
+; RUN: llvm-as < %s | pnacl-freeze | pnacl-bccompress --remove-abbreviations \
+; RUN: | pnacl-bcdis | FileCheck %s
+
+define void @AllocaTests(i32 %p0) {
+
+; CHECK: | | %b0:
+
+ %v0 = alloca i8, i32 1, align 4
+ %v1 = alloca i8, i32 4, align 4
+ %v2 = alloca i8, i32 %p0, align 128
+ ret void
+
+; CHECK-NEXT: {{.*}}| 3: <19, 2, 3> | %v0 = alloca i8, i32 %c0, align 4;
+; CHECK-NEXT: {{.*}}| 3: <19, 2, 3> | %v1 = alloca i8, i32 %c1, align 4;
+; CHECK-NEXT: {{.*}}| 3: <19, 5, 8> | %v2 = alloca i8, i32 %p0,
+; CHECK-NEXT: | | align 128;
+; CHECK-NEXT: {{.*}}| 3: <10> | ret void;
+
+}
« no previous file with comments | « test/NaCl/Bitcode/null.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/binops.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698