Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-amdgpu-ffbh-u32.mir
blob0ea678a6a1dd3b066fcb469fbb236d99fed9aa42
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
5 ---
6 name: ffbh_u32_s
7 legalized: true
9 body: |
10   bb.0:
11     liveins: $sgpr0
13     ; CHECK-LABEL: name: ffbh_u32_s
14     ; CHECK: liveins: $sgpr0
15     ; CHECK-NEXT: {{  $}}
16     ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
17     ; CHECK-NEXT: [[AMDGPU_FFBH_U32_:%[0-9]+]]:sgpr(s32) = G_AMDGPU_FFBH_U32 [[COPY]](s32)
18     %0:_(s32) = COPY $sgpr0
19     %1:_(s32) = G_AMDGPU_FFBH_U32 %0
20 ...
22 ---
23 name: ffbh_u32_v
24 legalized: true
26 body: |
27   bb.0:
28     liveins: $vgpr0_vgpr1
29     ; CHECK-LABEL: name: ffbh_u32_v
30     ; CHECK: liveins: $vgpr0_vgpr1
31     ; CHECK-NEXT: {{  $}}
32     ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
33     ; CHECK-NEXT: [[AMDGPU_FFBH_U32_:%[0-9]+]]:vgpr(s32) = G_AMDGPU_FFBH_U32 [[COPY]](s32)
34     %0:_(s32) = COPY $vgpr0
35     %1:_(s32) = G_AMDGPU_FFBH_U32 %0
36 ...