OLD | NEW |
1 ; Test handling of call instructions. | 1 ; Test handling of call instructions. |
2 | 2 |
| 3 ; REQUIRES: allow_dump |
| 4 |
3 ; RUN: %p2i -i %s --insts | FileCheck %s | 5 ; RUN: %p2i -i %s --insts | FileCheck %s |
4 ; RUN: %if --need=allow_disable_ir_gen --command \ | 6 ; RUN: %if --need=allow_disable_ir_gen --command \ |
5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ | 7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ |
6 ; RUN: | %if --need=allow_disable_ir_gen --command \ | 8 ; RUN: | %if --need=allow_disable_ir_gen --command \ |
7 ; RUN: FileCheck --check-prefix=NOIR %s | 9 ; RUN: FileCheck --check-prefix=NOIR %s |
8 | 10 |
9 define i32 @fib(i32 %n) { | 11 define i32 @fib(i32 %n) { |
10 entry: | 12 entry: |
11 %cmp = icmp slt i32 %n, 2 | 13 %cmp = icmp slt i32 %n, 2 |
12 br i1 %cmp, label %return, label %if.end | 14 br i1 %cmp, label %return, label %if.end |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ; CHECK-NEXT: %n.tr3 = phi i32 [ %call.i, %if.then ], [ %n, %entry ] | 106 ; CHECK-NEXT: %n.tr3 = phi i32 [ %call.i, %if.then ], [ %n, %entry ] |
105 ; CHECK-NEXT: %sub = add i32 %n.tr3, -1 | 107 ; CHECK-NEXT: %sub = add i32 %n.tr3, -1 |
106 ; CHECK-NEXT: %call.i = call i32 @redirect_target(i32 %sub) | 108 ; CHECK-NEXT: %call.i = call i32 @redirect_target(i32 %sub) |
107 ; CHECK-NEXT: %cmp = icmp sgt i32 %call.i, 0 | 109 ; CHECK-NEXT: %cmp = icmp sgt i32 %call.i, 0 |
108 ; CHECK-NEXT: br i1 %cmp, label %if.then, label %if.end | 110 ; CHECK-NEXT: br i1 %cmp, label %if.then, label %if.end |
109 ; CHECK-NEXT: if.end: | 111 ; CHECK-NEXT: if.end: |
110 ; CHECK-NEXT: ret void | 112 ; CHECK-NEXT: ret void |
111 ; CHECK-NEXT: } | 113 ; CHECK-NEXT: } |
112 | 114 |
113 ; NOIR: Total across all functions | 115 ; NOIR: Total across all functions |
OLD | NEW |