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

Side by Side Diff: tests_lit/reader_tests/call.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
« no previous file with comments | « tests_lit/reader_tests/branch.ll ('k') | tests_lit/reader_tests/casts.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 handling of call instructions. 1 ; Test handling of call instructions.
2 2
3 ; RUN: %p2i -i %s --insts --args -allow-externally-defined-symbols \ 3 ; RUN: %p2i -i %s --insts --args -allow-externally-defined-symbols \
4 ; RUN: | FileCheck %s 4 ; RUN: | FileCheck %s
5 ; RUN: %if --need=allow_disable_ir_gen --command \ 5 ; RUN: %p2i -i %s --args -notranslate -timing \
6 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ 6 ; RUN: -allow-externally-defined-symbols | \
7 ; RUN: -allow-externally-defined-symbols \
8 ; RUN: | %if --need=allow_disable_ir_gen --command \
9 ; RUN: FileCheck --check-prefix=NOIR %s 7 ; RUN: FileCheck --check-prefix=NOIR %s
10 8
11 define internal i32 @fib(i32 %n) { 9 define internal i32 @fib(i32 %n) {
12 entry: 10 entry:
13 %cmp = icmp slt i32 %n, 2 11 %cmp = icmp slt i32 %n, 2
14 br i1 %cmp, label %return, label %if.end 12 br i1 %cmp, label %return, label %if.end
15 13
16 if.end: ; preds = %entry 14 if.end: ; preds = %entry
17 %sub = add i32 %n, -1 15 %sub = add i32 %n, -1
18 %call = tail call i32 @fib(i32 %sub) 16 %call = tail call i32 @fib(i32 %sub)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ; CHECK-NEXT: %n.tr3 = phi i32 [ %call.i, %if.then ], [ %n, %entry ] 104 ; CHECK-NEXT: %n.tr3 = phi i32 [ %call.i, %if.then ], [ %n, %entry ]
107 ; CHECK-NEXT: %sub = add i32 %n.tr3, -1 105 ; CHECK-NEXT: %sub = add i32 %n.tr3, -1
108 ; CHECK-NEXT: %call.i = call i32 @redirect_target(i32 %sub) 106 ; CHECK-NEXT: %call.i = call i32 @redirect_target(i32 %sub)
109 ; CHECK-NEXT: %cmp = icmp sgt i32 %call.i, 0 107 ; CHECK-NEXT: %cmp = icmp sgt i32 %call.i, 0
110 ; CHECK-NEXT: br i1 %cmp, label %if.then, label %if.end 108 ; CHECK-NEXT: br i1 %cmp, label %if.then, label %if.end
111 ; CHECK-NEXT: if.end: 109 ; CHECK-NEXT: if.end:
112 ; CHECK-NEXT: ret void 110 ; CHECK-NEXT: ret void
113 ; CHECK-NEXT: } 111 ; CHECK-NEXT: }
114 112
115 ; NOIR: Total across all functions 113 ; NOIR: Total across all functions
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/branch.ll ('k') | tests_lit/reader_tests/casts.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698