1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=hawaii -run-pass=amdgpu-regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -mcpu=hawaii -run-pass=amdgpu-regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s
6 name: test_constant_s32_vgpr_use
11 ; CHECK-LABEL: name: test_constant_s32_vgpr_use
12 ; CHECK: liveins: $vgpr0_vgpr1
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(p1) = COPY $vgpr0_vgpr1
15 ; CHECK-NEXT: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 1
16 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
17 ; CHECK-NEXT: G_STORE [[COPY1]](s32), [[COPY]](p1) :: (store (s32))
18 %0:_(p1) = COPY $vgpr0_vgpr1
19 %1:_(s32) = G_CONSTANT i32 1
20 G_STORE %1, %0 :: (store (s32))
25 name: test_constant_s32_sgpr_use
29 ; CHECK-LABEL: name: test_constant_s32_sgpr_use
30 ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 1
31 ; CHECK-NEXT: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.s.sendmsg), 0, [[C]](s32)
32 %0:_(s32) = G_CONSTANT i32 1
33 G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.s.sendmsg), 0, %0