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
6 define void @reloc_constant_sgpr32() { ret void }
7 define void @reloc_constant_vgpr32() { ret void }
9 declare i32 @llvm.amdgcn.reloc.constant(metadata)
16 name: reloc_constant_sgpr32
19 tracksRegLiveness: true
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-NEXT: $sgpr0 = COPY [[S_MOV_B32_]]
26 ; GCN-NEXT: S_ENDPGM 0, implicit $sgpr0
27 %0:sgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.reloc.constant), !0
29 S_ENDPGM 0, implicit $sgpr0
34 name: reloc_constant_vgpr32
37 tracksRegLiveness: true
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-NEXT: $vgpr0 = COPY [[V_MOV_B32_e32_]]
44 ; GCN-NEXT: S_ENDPGM 0, implicit $vgpr0
45 %0:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.reloc.constant), !0
47 S_ENDPGM 0, implicit $vgpr0