Debian Codegraph @

llvm/test/CodeGen/PowerPC/mflr-store.mir

raw
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple powerpc64-unknown-aix-xcoff -x mir \
3 # RUN: -stop-after=prologepilog --verify-machineinstrs < %s | \
4 # RUN: FileCheck %s --check-prefixes=CHECK
5
6 ---
7 name: test_callee
8 frameInfo:
9 hasCalls: true
10 tracksRegLiveness: true
11 body: |
12 bb.0:
13 ; CHECK-LABEL: name: test_callee
14 ; CHECK: $x3 = LI8 10
15 ; CHECK-NEXT: BLR8 implicit $lr8, implicit $rm, implicit killed $x3
16 $x3 = LI8 10
17 BLR8 implicit $lr8, implicit $rm, implicit killed $x3
18 ...
19 ---
20 name: test
21 tracksRegLiveness: true
22 stack:
23 - { id: 0, size: 32704, alignment: 8 }
24 body: |
25 bb.0:
26 ; CHECK-LABEL: name: test
27 ; CHECK: $x0 = MFLR8 implicit $lr8
28 ; CHECK-NEXT: STD killed $x0, 16, $x1
29 ; CHECK-NEXT: $x1 = STDU $x1, -32752, $x1
30 ; CHECK-NEXT: BL8 @test_callee, csr_ppc64_r2, implicit-def dead $lr8, implicit $rm, implicit-def $r1, implicit-def $x3
31 ; CHECK-NEXT: $x1 = ADDI8 $x1, 32752
32 ; CHECK-NEXT: $x0 = LD 16, $x1
33 ; CHECK-NEXT: MTLR8 $x0, implicit-def $lr8
34 ; CHECK-NEXT: BLR8 implicit $lr8, implicit $rm, implicit killed $x3
35 BL8 @test_callee, csr_ppc64_r2, implicit-def dead $lr8, implicit $rm, implicit-def $r1, implicit-def $x3
36 BLR8 implicit $lr8, implicit $rm, implicit $x3
37 ...
38