brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 0de6114 Raw
45 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn -run-pass none -o - %s | FileCheck %s3--- |4  define amdgpu_kernel void @flags() {5    ret void6  }7 8  declare void @foo()9...10---11 12 13name: flags14liveins:15  - { reg: '$sgpr0_sgpr1' }16frameInfo:17  maxAlignment:  818registers:19  - { id: 0, class: sreg_64, preferred-register: '' }20  - { id: 1, class: sreg_64, preferred-register: '' }21body: |22  bb.0:23    liveins: $sgpr0_sgpr124    ; CHECK-LABEL: name: flags25    ; CHECK: liveins: $sgpr0_sgpr126    ; CHECK-NEXT: {{  $}}27    ; CHECK-NEXT: [[SI_PC_ADD_REL_OFFSET:%[0-9]+]]:sreg_64 = SI_PC_ADD_REL_OFFSET target-flags(amdgpu-rel32-lo) @foo + 4, target-flags(amdgpu-rel32-hi) @foo + 12, implicit-def dead $scc28    ; CHECK-NEXT: [[S_MOV_B64_:%[0-9]+]]:sreg_64 = S_MOV_B64 target-flags(amdgpu-gotprel) @foo29    ; CHECK-NEXT: [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-lo) @foo30    ; CHECK-NEXT: [[S_MOV_B32_1:%[0-9]+]]:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-hi) @foo31    ; CHECK-NEXT: [[S_MOV_B64_1:%[0-9]+]]:sreg_64 = S_MOV_B64 target-flags(amdgpu-abs64) @foo32    ; CHECK-NEXT: [[S_MOV_B64_2:%[0-9]+]]:sreg_64 = S_MOV_B64 target-flags(amdgpu-rel64) @foo33    ; CHECK-NEXT: [[S_MOV_B64_3:%[0-9]+]]:sreg_64 = S_MOV_B64 target-flags(amdgpu-gotprel64) @foo34    ; CHECK-NEXT: S_ENDPGM 035    %0 = SI_PC_ADD_REL_OFFSET target-flags(amdgpu-rel32-lo) @foo + 4, target-flags(amdgpu-rel32-hi) @foo + 12, implicit-def dead $scc36    %1 = S_MOV_B64 target-flags(amdgpu-gotprel) @foo37    %2:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-lo) @foo38    %3:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-hi) @foo39    %4:sreg_64 = S_MOV_B64 target-flags(amdgpu-abs64) @foo40    %5:sreg_64 = S_MOV_B64 target-flags(amdgpu-rel64) @foo41    %6:sreg_64 = S_MOV_B64 target-flags(amdgpu-gotprel64) @foo42 43    S_ENDPGM 044...45