1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-unknown \
3 ; RUN: -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names < %s | FileCheck %s
5 define dso_local signext i32 @caller(i32 signext %a, i32 signext %b, i32 signext %c) local_unnamed_addr {
7 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: .cfi_def_cfa_offset 192
10 ; CHECK-NEXT: .cfi_offset lr, 16
11 ; CHECK-NEXT: .cfi_offset r14, -144
12 ; CHECK-NEXT: .cfi_offset r15, -136
13 ; CHECK-NEXT: .cfi_offset r16, -128
14 ; CHECK-NEXT: .cfi_offset r17, -120
15 ; CHECK-NEXT: .cfi_offset r18, -112
16 ; CHECK-NEXT: .cfi_offset r19, -104
17 ; CHECK-NEXT: .cfi_offset r20, -96
18 ; CHECK-NEXT: .cfi_offset r21, -88
19 ; CHECK-NEXT: .cfi_offset r22, -80
20 ; CHECK-NEXT: .cfi_offset r23, -72
21 ; CHECK-NEXT: .cfi_offset r24, -64
22 ; CHECK-NEXT: .cfi_offset r25, -56
23 ; CHECK-NEXT: .cfi_offset r26, -48
24 ; CHECK-NEXT: .cfi_offset r27, -40
25 ; CHECK-NEXT: .cfi_offset r28, -32
26 ; CHECK-NEXT: .cfi_offset r29, -24
27 ; CHECK-NEXT: .cfi_offset r30, -16
28 ; CHECK-NEXT: .cfi_offset r31, -8
29 ; CHECK-NEXT: std r14, -144(r1) # 8-byte Folded Spill
30 ; CHECK-NEXT: std r15, -136(r1) # 8-byte Folded Spill
31 ; CHECK-NEXT: std r16, -128(r1) # 8-byte Folded Spill
32 ; CHECK-NEXT: std r17, -120(r1) # 8-byte Folded Spill
33 ; CHECK-NEXT: std r18, -112(r1) # 8-byte Folded Spill
34 ; CHECK-NEXT: std r19, -104(r1) # 8-byte Folded Spill
35 ; CHECK-NEXT: std r20, -96(r1) # 8-byte Folded Spill
36 ; CHECK-NEXT: std r21, -88(r1) # 8-byte Folded Spill
37 ; CHECK-NEXT: std r22, -80(r1) # 8-byte Folded Spill
38 ; CHECK-NEXT: std r23, -72(r1) # 8-byte Folded Spill
39 ; CHECK-NEXT: std r24, -64(r1) # 8-byte Folded Spill
40 ; CHECK-NEXT: std r25, -56(r1) # 8-byte Folded Spill
41 ; CHECK-NEXT: std r26, -48(r1) # 8-byte Folded Spill
42 ; CHECK-NEXT: std r27, -40(r1) # 8-byte Folded Spill
43 ; CHECK-NEXT: std r28, -32(r1) # 8-byte Folded Spill
44 ; CHECK-NEXT: std r29, -24(r1) # 8-byte Folded Spill
45 ; CHECK-NEXT: std r30, -16(r1) # 8-byte Folded Spill
46 ; CHECK-NEXT: std r31, -8(r1) # 8-byte Folded Spill
47 ; CHECK-NEXT: stdu r1, -192(r1)
48 ; CHECK-NEXT: std r0, 208(r1)
49 ; CHECK-NEXT: std r5, 32(r1) # 8-byte Folded Spill
50 ; CHECK-NEXT: mr r0, r4
51 ; CHECK-NEXT: std r3, 40(r1) # 8-byte Folded Spill
52 ; CHECK-NEXT: ld r3, 40(r1) # 8-byte Folded Reload
54 ; CHECK-NEXT: add r3, r3, r0
56 ; CHECK-NEXT: ld r4, 40(r1) # 8-byte Folded Reload
57 ; CHECK-NEXT: ld r6, 32(r1) # 8-byte Folded Reload
58 ; CHECK-NEXT: extsw r3, r3
59 ; CHECK-NEXT: mr r5, r0
60 ; CHECK-NEXT: bl callee
62 ; CHECK-NEXT: addi r1, r1, 192
63 ; CHECK-NEXT: ld r0, 16(r1)
64 ; CHECK-NEXT: ld r31, -8(r1) # 8-byte Folded Reload
65 ; CHECK-NEXT: ld r30, -16(r1) # 8-byte Folded Reload
66 ; CHECK-NEXT: ld r29, -24(r1) # 8-byte Folded Reload
68 ; CHECK-NEXT: ld r28, -32(r1) # 8-byte Folded Reload
69 ; CHECK-NEXT: ld r27, -40(r1) # 8-byte Folded Reload
70 ; CHECK-NEXT: ld r26, -48(r1) # 8-byte Folded Reload
71 ; CHECK-NEXT: ld r25, -56(r1) # 8-byte Folded Reload
72 ; CHECK-NEXT: ld r24, -64(r1) # 8-byte Folded Reload
73 ; CHECK-NEXT: ld r23, -72(r1) # 8-byte Folded Reload
74 ; CHECK-NEXT: ld r22, -80(r1) # 8-byte Folded Reload
75 ; CHECK-NEXT: ld r21, -88(r1) # 8-byte Folded Reload
76 ; CHECK-NEXT: ld r20, -96(r1) # 8-byte Folded Reload
77 ; CHECK-NEXT: ld r19, -104(r1) # 8-byte Folded Reload
78 ; CHECK-NEXT: ld r18, -112(r1) # 8-byte Folded Reload
79 ; CHECK-NEXT: ld r17, -120(r1) # 8-byte Folded Reload
80 ; CHECK-NEXT: ld r16, -128(r1) # 8-byte Folded Reload
81 ; CHECK-NEXT: ld r15, -136(r1) # 8-byte Folded Reload
82 ; CHECK-NEXT: ld r14, -144(r1) # 8-byte Folded Reload
85 %0 = tail call i32 asm "add $0, $1, $2", "=r,r,r,~{r14},~{r15},~{r16},~{r17},~{r18},~{r19},~{r20},~{r21},~{r22},~{r23},~{r24},~{r25},~{r26},~{r27},~{r28},~{r29},~{r30},~{r31},~{r4},~{r5},~{r6},~{r7},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13}"(i32 %a, i32 %b)
86 %call = tail call signext i32 @callee(i32 signext %0, i32 signext %a, i32 signext %b, i32 signext %c)
90 declare signext i32 @callee(i32 signext, i32 signext, i32 signext, i32 signext) local_unnamed_addr