OLD | NEW |
1 ; Tests if we can read select instructions. | 1 ; Tests if we can read select instructions. |
2 | 2 |
3 ; RUN: %p2i -i %s --insts | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
| 4 ; RUN: %if --need=allow_disable_ir_gen --command \ |
| 5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ |
| 6 ; RUN: | %if --need=allow_disable_ir_gen --command \ |
| 7 ; RUN: FileCheck --check-prefix=NOIR %s |
4 | 8 |
5 define void @Seli1(i32 %p) { | 9 define void @Seli1(i32 %p) { |
6 entry: | 10 entry: |
7 %vc = trunc i32 %p to i1 | 11 %vc = trunc i32 %p to i1 |
8 %vt = trunc i32 %p to i1 | 12 %vt = trunc i32 %p to i1 |
9 %ve = trunc i32 %p to i1 | 13 %ve = trunc i32 %p to i1 |
10 %r = select i1 %vc, i1 %vt, i1 %ve | 14 %r = select i1 %vc, i1 %vt, i1 %ve |
11 ret void | 15 ret void |
12 } | 16 } |
13 | 17 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 entry: | 290 entry: |
287 %r = select <4 x i1> %pc, <4 x float> %pt, <4 x float> %pe | 291 %r = select <4 x i1> %pc, <4 x float> %pt, <4 x float> %pe |
288 ret <4 x float> %r | 292 ret <4 x float> %r |
289 } | 293 } |
290 | 294 |
291 ; CHECK-NEXT: define <4 x float> @SelV4xfloatVcond(<4 x i1> %pc, <4 x float> %pt
, <4 x float> %pe) { | 295 ; CHECK-NEXT: define <4 x float> @SelV4xfloatVcond(<4 x i1> %pc, <4 x float> %pt
, <4 x float> %pe) { |
292 ; CHECK-NEXT: entry: | 296 ; CHECK-NEXT: entry: |
293 ; CHECK-NEXT: %r = select <4 x i1> %pc, <4 x float> %pt, <4 x float> %pe | 297 ; CHECK-NEXT: %r = select <4 x i1> %pc, <4 x float> %pt, <4 x float> %pe |
294 ; CHECK-NEXT: ret <4 x float> %r | 298 ; CHECK-NEXT: ret <4 x float> %r |
295 ; CHECK-NEXT: } | 299 ; CHECK-NEXT: } |
| 300 |
| 301 ; NOIR: Total across all functions |
OLD | NEW |