[AMDGPU] Mark AGPR tuple implicit in the first instr of AGPR spills. (#115285)
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / return-with-successors.mir
blob89e9f852b610d43bb5fb160578f75dad0bc33189
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs -run-pass=liveintervals -o - %s | FileCheck %s
3 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 --passes='print<live-intervals>' -o - %s | FileCheck %s
4 # Test that getNoPreservedMask is implemented, which is called when
5 # return blocks have successors.
7 ---
8 name: endpgm_with_successors
9 tracksRegLiveness: true
10 body:             |
11   ; CHECK-LABEL: name: endpgm_with_successors
12   ; CHECK: bb.0:
13   ; CHECK-NEXT:   successors: %bb.1(0x80000000)
14   ; CHECK-NEXT: {{  $}}
15   ; CHECK-NEXT:   S_ENDPGM 0
16   ; CHECK-NEXT: {{  $}}
17   ; CHECK-NEXT: bb.1:
18   ; CHECK-NEXT:   S_NOP 0
19   bb.0:
20     successors: %bb.1
21     S_ENDPGM 0
23   bb.1:
24     S_NOP 0
26 ...
28 ---
29 name: setpc_with_successors
30 tracksRegLiveness: true
31 body:             |
32   ; CHECK-LABEL: name: setpc_with_successors
33   ; CHECK: bb.0:
34   ; CHECK-NEXT:   successors: %bb.1(0x80000000)
35   ; CHECK-NEXT:   liveins: $sgpr30_sgpr31
36   ; CHECK-NEXT: {{  $}}
37   ; CHECK-NEXT:   S_SETPC_B64 $sgpr30_sgpr31
38   ; CHECK-NEXT: {{  $}}
39   ; CHECK-NEXT: bb.1:
40   ; CHECK-NEXT:   S_NOP 0
41   bb.0:
42     liveins: $sgpr30_sgpr31
43     successors: %bb.1
44     S_SETPC_B64 $sgpr30_sgpr31
46   bb.1:
47     S_NOP 0
49 ...