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

Side by Side Diff: tests_lit/reader_tests/branch.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 ; Tests if we handle a branch instructions. 1 ; Tests if we handle a branch 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 define void @SimpleBranch() { 8 define void @SimpleBranch() {
6 entry: 9 entry:
7 br label %b3 10 br label %b3
8 b1: 11 b1:
9 br label %b2 12 br label %b2
10 b2: 13 b2:
11 ret void 14 ret void
12 b3: 15 b3:
13 br label %b1 16 br label %b1
(...skipping 22 matching lines...) Expand all
36 39
37 ; CHECK-NEXT: define void @CondBranch(i32 %p) { 40 ; CHECK-NEXT: define void @CondBranch(i32 %p) {
38 ; CHECK-NEXT: entry: 41 ; CHECK-NEXT: entry:
39 ; CHECK-NEXT: %test = trunc i32 %p to i1 42 ; CHECK-NEXT: %test = trunc i32 %p to i1
40 ; CHECK-NEXT: br i1 %test, label %b1, label %b2 43 ; CHECK-NEXT: br i1 %test, label %b1, label %b2
41 ; CHECK-NEXT: b1: 44 ; CHECK-NEXT: b1:
42 ; CHECK-NEXT: ret void 45 ; CHECK-NEXT: ret void
43 ; CHECK-NEXT: b2: 46 ; CHECK-NEXT: b2:
44 ; CHECK-NEXT: br i1 %test, label %b2, label %b1 47 ; CHECK-NEXT: br i1 %test, label %b2, label %b1
45 ; CHECK-NEXT: } 48 ; CHECK-NEXT: }
49
50 ; NOIR: Total across all functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698