1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s 3 4--- | 5 6 define void @reloc_constant_sgpr32() { ret void } 7 define void @reloc_constant_vgpr32() { ret void } 8 9 declare i32 @llvm.amdgcn.reloc.constant(metadata) 10 11 !0 = !{!"arst"} 12 13... 14 15--- 16name: reloc_constant_sgpr32 17legalized: true 18regBankSelected: true 19tracksRegLiveness: true 20body: | 21 bb.0: 22 23 ; GCN-LABEL: name: reloc_constant_sgpr32 24 ; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-lo) @arst 25 ; GCN: $sgpr0 = COPY [[S_MOV_B32_]] 26 ; GCN: S_ENDPGM 0, implicit $sgpr0 27 %0:sgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.reloc.constant), !0 28 $sgpr0 = COPY %0 29 S_ENDPGM 0, implicit $sgpr0 30 31... 32 33--- 34name: reloc_constant_vgpr32 35legalized: true 36regBankSelected: true 37tracksRegLiveness: true 38body: | 39 bb.0: 40 41 ; GCN-LABEL: name: reloc_constant_vgpr32 42 ; GCN: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 target-flags(amdgpu-abs32-lo) @arst, implicit $exec 43 ; GCN: $vgpr0 = COPY [[V_MOV_B32_e32_]] 44 ; GCN: S_ENDPGM 0, implicit $vgpr0 45 %0:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.reloc.constant), !0 46 $vgpr0 = COPY %0 47 S_ENDPGM 0, implicit $vgpr0 48 49... 50 51