1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
12 ; CHECK-LABEL: name: bitreverse_i32_s
13 ; CHECK: liveins: $sgpr0
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
16 ; CHECK-NEXT: [[BITREVERSE:%[0-9]+]]:sgpr(s32) = G_BITREVERSE [[COPY]]
17 %0:_(s32) = COPY $sgpr0
18 %1:_(s32) = G_BITREVERSE %0
22 name: bitreverse_i32_v
28 ; CHECK-LABEL: name: bitreverse_i32_v
29 ; CHECK: liveins: $vgpr0
31 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
32 ; CHECK-NEXT: [[BITREVERSE:%[0-9]+]]:vgpr(s32) = G_BITREVERSE [[COPY]]
33 %0:_(s32) = COPY $vgpr0
34 %1:_(s32) = G_BITREVERSE %0
38 name: bitreverse_i64_s
44 ; CHECK-LABEL: name: bitreverse_i64_s
45 ; CHECK: liveins: $sgpr0
47 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
48 ; CHECK-NEXT: [[BITREVERSE:%[0-9]+]]:sgpr(s64) = G_BITREVERSE [[COPY]]
49 %0:_(s64) = COPY $sgpr0_sgpr1
50 %1:_(s64) = G_BITREVERSE %0
54 name: bitreverse_i64_v
60 ; CHECK-LABEL: name: bitreverse_i64_v
61 ; CHECK: liveins: $vgpr0
63 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
64 ; CHECK-NEXT: [[UV:%[0-9]+]]:vgpr(s32), [[UV1:%[0-9]+]]:vgpr(s32) = G_UNMERGE_VALUES [[COPY]](s64)
65 ; CHECK-NEXT: [[BITREVERSE:%[0-9]+]]:vgpr(s32) = G_BITREVERSE [[UV1]]
66 ; CHECK-NEXT: [[BITREVERSE1:%[0-9]+]]:vgpr(s32) = G_BITREVERSE [[UV]]
67 ; CHECK-NEXT: [[MV:%[0-9]+]]:vgpr(s64) = G_MERGE_VALUES [[BITREVERSE]](s32), [[BITREVERSE1]](s32)
68 %0:_(s64) = COPY $vgpr0_vgpr1
69 %1:_(s64) = G_BITREVERSE %0