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

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

Issue 696383004: Disable Subzero IR generation for performance testing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in patch set 2, and add tests. Created 6 years, 1 month 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: %p2i -i %s --args -notranslate -timing -noIRgen \
5 ; RUN: | %if --need=allow_disable_ir_gen \
6 ; RUN: --command FileCheck --check-prefix=NOIR %s
4 7
5 ; Show examples where size is defined by a constant. 8 ; Show examples where size is defined by a constant.
6 9
7 define i32 @AllocaA0Size1() { 10 define i32 @AllocaA0Size1() {
8 entry: 11 entry:
9 %array = alloca i8, i32 1 12 %array = alloca i8, i32 1
10 %addr = ptrtoint i8* %array to i32 13 %addr = ptrtoint i8* %array to i32
11 ret i32 %addr 14 ret i32 %addr
12 15
13 ; CHECK: entry: 16 ; CHECK: entry:
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 define i32 @AllocaVarsizeA16(i32 %n) { 155 define i32 @AllocaVarsizeA16(i32 %n) {
153 entry: 156 entry:
154 %array = alloca i8, i32 %n, align 16 157 %array = alloca i8, i32 %n, align 16
155 %addr = ptrtoint i8* %array to i32 158 %addr = ptrtoint i8* %array to i32
156 ret i32 %addr 159 ret i32 %addr
157 160
158 ; CHECK: entry: 161 ; CHECK: entry:
159 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16 162 ; CHECK-NEXT: %array = alloca i8, i32 %n, align 16
160 ; CHECK-NEXT: ret i32 %array 163 ; CHECK-NEXT: ret i32 %array
161 } 164 }
165
166 ; NOIR: Total across all functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698