brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 6a89085 Raw
51 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s3 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_sgpr3217legalized:       true18regBankSelected: true19tracksRegLiveness: true20body:             |21  bb.0:22 23    ; GCN-LABEL: name: reloc_constant_sgpr3224    ; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-lo) @arst25    ; GCN-NEXT: $sgpr0 = COPY [[S_MOV_B32_]]26    ; GCN-NEXT: S_ENDPGM 0, implicit $sgpr027    %0:sgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.reloc.constant), !028    $sgpr0 = COPY %029    S_ENDPGM 0, implicit $sgpr030 31...32 33---34name:            reloc_constant_vgpr3235legalized:       true36regBankSelected: true37tracksRegLiveness: true38body:             |39  bb.0:40 41    ; GCN-LABEL: name: reloc_constant_vgpr3242    ; GCN: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 target-flags(amdgpu-abs32-lo) @arst, implicit $exec43    ; GCN-NEXT: $vgpr0 = COPY [[V_MOV_B32_e32_]]44    ; GCN-NEXT: S_ENDPGM 0, implicit $vgpr045    %0:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.reloc.constant), !046    $vgpr0 = COPY %047    S_ENDPGM 0, implicit $vgpr048 49...50 51