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

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

Issue 1522433004: eliminate code related to --no-ir-gen (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 5 years 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
OLDNEW
1 ; Test if we can read alloca instructions. 1 ; Test if we can read alloca instructions.
2 2
3 ; RUN: %p2i -i %s --insts | FileCheck %s 3 ; RUN: %p2i -i %s --insts | FileCheck %s
4 ; RUN: %if --need=allow_disable_ir_gen --command \ 4 ; RUN: %if --need=allow_disable_ir_gen --command \
Jim Stichnoth 2015/12/12 15:43:42 Sorry, I missed a key part. The parts that produc
rkotlerimgtec 2015/12/14 03:12:12 Done.
5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ 5 ; RUN: %p2i -i %s --args -notranslate -timing \
6 ; RUN: | %if --need=allow_disable_ir_gen --command \ 6 ; RUN: | %if --need=allow_disable_ir_gen --command \
7 ; RUN: FileCheck --check-prefix=NOIR %s 7 ; RUN: FileCheck --check-prefix=NOIR %s
8 8
9 ; Show examples where size is defined by a constant. 9 ; Show examples where size is defined by a constant.
10 10
11 define internal i32 @AllocaA0Size1() { 11 define internal i32 @AllocaA0Size1() {
12 entry: 12 entry:
13 %array = alloca i8, i32 1 13 %array = alloca i8, i32 1
14 %addr = ptrtoint i8* %array to i32 14 %addr = ptrtoint i8* %array to i32
15 ret i32 %addr 15 ret i32 %addr
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 %array = alloca i8, i32 %n, align 16 158 %array = alloca i8, i32 %n, align 16
159 %addr = ptrtoint i8* %array to i32 159 %addr = ptrtoint i8* %array to i32
160 ret i32 %addr 160 ret i32 %addr
161 161
162 ; CHECK: entry: 162 ; CHECK: entry:
163 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 163 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16
164 ; CHECK-NEXT: ret i32 %array 164 ; CHECK-NEXT: ret i32 %array
165 } 165 }
166 166
167 ; NOIR: Total across all functions 167 ; NOIR: Total across all functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698