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