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

Side by Side Diff: tests_lit/llvm2ice_tests/call.ll

Issue 277033003: Modify pnacl subzero to be able to read pnacl bitcode files. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 7 months 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 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s 1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s 3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
5 ; RUN: | FileCheck --check-prefix=DUMP %s
4 6
5 define i32 @fib(i32 %n) { 7 define i32 @fib(i32 %n) {
6 ; CHECK: define i32 @fib 8 ; CHECK: define i32 @fib
7 entry: 9 entry:
8 %cmp = icmp slt i32 %n, 2 10 %cmp = icmp slt i32 %n, 2
9 br i1 %cmp, label %return, label %if.end 11 br i1 %cmp, label %return, label %if.end
10 12
11 if.end: ; preds = %entry 13 if.end: ; preds = %entry
12 %sub = add i32 %n, -1 14 %sub = add i32 %n, -1
13 %call = tail call i32 @fib(i32 %sub) 15 %call = tail call i32 @fib(i32 %sub)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 %call.i = tail call i32 @redirect_target(i32 %sub) 59 %call.i = tail call i32 @redirect_target(i32 %sub)
58 %cmp = icmp sgt i32 %call.i, 0 60 %cmp = icmp sgt i32 %call.i, 0
59 br i1 %cmp, label %if.then, label %if.end 61 br i1 %cmp, label %if.then, label %if.end
60 62
61 if.end: ; preds = %if.then, %entry 63 if.end: ; preds = %if.then, %entry
62 ret void 64 ret void
63 } 65 }
64 66
65 ; ERRORS-NOT: ICE translation error 67 ; ERRORS-NOT: ICE translation error
66 ; DUMP-NOT: SZ 68 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/branch-simple.ll ('k') | tests_lit/llvm2ice_tests/callindirect.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698