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

Side by Side Diff: tests_lit/reader_tests/alloca.ll

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes for rebase from master. Created 6 years, 2 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
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-select.ll ('k') | tests_lit/reader_tests/binops.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Test if we can read alloca instructions. 1 ; Test if we can read alloca instructions.
2 2
3 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ 3 ; RUN: %p2i -i %s --insts | FileCheck %s
4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \
5 ; RUN: -allow-pnacl-reader-error-recovery \
6 ; RUN: -allow-local-symbol-tables \
7 ; RUN: | FileCheck %s
8 4
9 ; Show examples where size is defined by a constant. 5 ; Show examples where size is defined by a constant.
10 6
11 define i32 @AllocaA0Size1() { 7 define i32 @AllocaA0Size1() {
12 entry: 8 entry:
13 %array = alloca i8, i32 1 9 %array = alloca i8, i32 1
14 %addr = ptrtoint i8* %array to i32 10 %addr = ptrtoint i8* %array to i32
15 ret i32 %addr 11 ret i32 %addr
16 12
17 ; CHECK: entry: 13 ; CHECK: entry:
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 define i32 @AllocaVarsizeA16(i32 %n) { 152 define i32 @AllocaVarsizeA16(i32 %n) {
157 entry: 153 entry:
158 %array = alloca i8, i32 %n, align 16 154 %array = alloca i8, i32 %n, align 16
159 %addr = ptrtoint i8* %array to i32 155 %addr = ptrtoint i8* %array to i32
160 ret i32 %addr 156 ret i32 %addr
161 157
162 ; CHECK: entry: 158 ; CHECK: entry:
163 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 159 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16
164 ; CHECK-NEXT: ret i32 %array 160 ; CHECK-NEXT: ret i32 %array
165 } 161 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-select.ll ('k') | tests_lit/reader_tests/binops.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698