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

Side by Side Diff: tests_lit/reader_tests/call.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 handling of call instructions. 1 ; Test handling of call 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 i32 @fib(i32 %n) { 8 define i32 @fib(i32 %n) {
6 entry: 9 entry:
7 %cmp = icmp slt i32 %n, 2 10 %cmp = icmp slt i32 %n, 2
8 br i1 %cmp, label %return, label %if.end 11 br i1 %cmp, label %return, label %if.end
9 12
10 if.end: ; preds = %entry 13 if.end: ; preds = %entry
11 %sub = add i32 %n, -1 14 %sub = add i32 %n, -1
12 %call = tail call i32 @fib(i32 %sub) 15 %call = tail call i32 @fib(i32 %sub)
13 %sub1 = add i32 %n, -2 16 %sub1 = add i32 %n, -2
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ; CHECK-NEXT: if.then: 102 ; CHECK-NEXT: if.then:
100 ; CHECK-NEXT: %n.tr3 = phi i32 [ %call.i, %if.then ], [ %n, %entry ] 103 ; CHECK-NEXT: %n.tr3 = phi i32 [ %call.i, %if.then ], [ %n, %entry ]
101 ; CHECK-NEXT: %sub = add i32 %n.tr3, -1 104 ; CHECK-NEXT: %sub = add i32 %n.tr3, -1
102 ; CHECK-NEXT: %call.i = call i32 @redirect_target(i32 %sub) 105 ; CHECK-NEXT: %call.i = call i32 @redirect_target(i32 %sub)
103 ; CHECK-NEXT: %cmp = icmp sgt i32 %call.i, 0 106 ; CHECK-NEXT: %cmp = icmp sgt i32 %call.i, 0
104 ; CHECK-NEXT: br i1 %cmp, label %if.then, label %if.end 107 ; CHECK-NEXT: br i1 %cmp, label %if.then, label %if.end
105 ; CHECK-NEXT: if.end: 108 ; CHECK-NEXT: if.end:
106 ; CHECK-NEXT: ret void 109 ; CHECK-NEXT: ret void
107 ; CHECK-NEXT: } 110 ; CHECK-NEXT: }
108 111
112 ; NOIR: Total across all functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698