1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -run-pass none -o - %s | FileCheck %s
3--- |
4  define amdgpu_kernel void @flags() {
5    ret void
6  }
7
8  declare void @foo()
9...
10---
11
12
13name: flags
14liveins:
15  - { reg: '$sgpr0_sgpr1' }
16frameInfo:
17  maxAlignment:  8
18registers:
19  - { id: 0, class: sreg_64, preferred-register: '' }
20  - { id: 1, class: sreg_64, preferred-register: '' }
21body: |
22  bb.0:
23    liveins: $sgpr0_sgpr1
24    ; CHECK-LABEL: name: flags
25    ; CHECK: [[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 $scc
26    ; CHECK: [[S_MOV_B64_:%[0-9]+]]:sreg_64 = S_MOV_B64 target-flags(amdgpu-gotprel) @foo
27    ; CHECK: S_ENDPGM 0
28    %0 = SI_PC_ADD_REL_OFFSET target-flags(amdgpu-rel32-lo) @foo + 4, target-flags(amdgpu-rel32-hi) @foo + 12, implicit-def dead $scc
29    %1 = S_MOV_B64 target-flags(amdgpu-gotprel) @foo
30    %2:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-lo) @foo
31    %3:sreg_32 = S_MOV_B32 target-flags(amdgpu-abs32-hi) @foo
32
33    S_ENDPGM 0
34...
35