OLD | NEW |
1 ; Tests if we handle a branch instructions. | 1 ; Tests if we handle a branch instructions. |
2 | 2 |
3 ; REQUIRES: allow_dump | |
4 | |
5 ; RUN: %p2i -i %s --insts | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
6 ; RUN: %if --need=allow_disable_ir_gen --command \ | 4 ; RUN: %if --need=allow_disable_ir_gen --command \ |
7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ | 5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ |
8 ; RUN: | %if --need=allow_disable_ir_gen --command \ | 6 ; 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 void @SimpleBranch() { | 9 define void @SimpleBranch() { |
12 entry: | 10 entry: |
13 br label %b3 | 11 br label %b3 |
14 b1: | 12 b1: |
(...skipping 29 matching lines...) Expand all Loading... |
44 ; CHECK-NEXT: entry: | 42 ; CHECK-NEXT: entry: |
45 ; CHECK-NEXT: %test = trunc i32 %p to i1 | 43 ; CHECK-NEXT: %test = trunc i32 %p to i1 |
46 ; CHECK-NEXT: br i1 %test, label %b1, label %b2 | 44 ; CHECK-NEXT: br i1 %test, label %b1, label %b2 |
47 ; CHECK-NEXT: b1: | 45 ; CHECK-NEXT: b1: |
48 ; CHECK-NEXT: ret void | 46 ; CHECK-NEXT: ret void |
49 ; CHECK-NEXT: b2: | 47 ; CHECK-NEXT: b2: |
50 ; CHECK-NEXT: br i1 %test, label %b2, label %b1 | 48 ; CHECK-NEXT: br i1 %test, label %b2, label %b1 |
51 ; CHECK-NEXT: } | 49 ; CHECK-NEXT: } |
52 | 50 |
53 ; NOIR: Total across all functions | 51 ; NOIR: Total across all functions |
OLD | NEW |