1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=amdgcn -mcpu=hawaii -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s 3# RUN: llc -march=amdgcn -mcpu=hawaii -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s 4 5--- 6name: test_constant_s32_vgpr_use 7legalized: true 8body: | 9 bb.0: 10 liveins: $vgpr0_vgpr1 11 ; CHECK-LABEL: name: test_constant_s32_vgpr_use 12 ; CHECK: [[COPY:%[0-9]+]]:vgpr(p1) = COPY $vgpr0_vgpr1 13 ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 1 14 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32) 15 ; CHECK: G_STORE [[COPY1]](s32), [[COPY]](p1) :: (store 4) 16 %0:_(p1) = COPY $vgpr0_vgpr1 17 %1:_(s32) = G_CONSTANT i32 1 18 G_STORE %1, %0 :: (store 4) 19 20... 21 22--- 23name: test_constant_s32_sgpr_use 24legalized: true 25body: | 26 bb.0: 27 ; CHECK-LABEL: name: test_constant_s32_sgpr_use 28 ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 1 29 ; CHECK: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.s.sendmsg), 0, [[C]](s32) 30 %0:_(s32) = G_CONSTANT i32 1 31 G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.s.sendmsg), 0, %0 32 33... 34