| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |