xref: /llvm-project/llvm/test/CodeGen/PowerPC/stack_pointer_vec_spills.mir (revision c79bc5942d0efd4740c7a6d36ad951c59ef3bc0e)
1*c79bc594SStefan Pintilie# RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 \
2*c79bc594SStefan Pintilie# RUN:     -start-before=prologepilog -ppc-enable-pe-vector-spills \
3*c79bc594SStefan Pintilie# RUN:     -ppc-asm-full-reg-names -verify-machineinstrs %s -o - | FileCheck %s
4*c79bc594SStefan Pintilie
5*c79bc594SStefan Pintilie---
6*c79bc594SStefan Pintiliename:            MixedSpill
7*c79bc594SStefan Pintiliealignment:       16
8*c79bc594SStefan PintilietracksRegLiveness: true
9*c79bc594SStefan Pintilieliveins:
10*c79bc594SStefan Pintiliebody:             |
11*c79bc594SStefan Pintilie  bb.0.entry:
12*c79bc594SStefan Pintilie    $r14 = IMPLICIT_DEF
13*c79bc594SStefan Pintilie    $f14 = IMPLICIT_DEF
14*c79bc594SStefan Pintilie    $lr8 = IMPLICIT_DEF
15*c79bc594SStefan Pintilie    BLR8 implicit undef $lr8, implicit undef $rm
16*c79bc594SStefan Pintilie
17*c79bc594SStefan Pintilie# CHECK-LABEL: MixedSpill
18*c79bc594SStefan Pintilie# CHECK:       stdu r1, -176(r1)
19*c79bc594SStefan Pintilie# CHECK:       stfd f14, 32(r1)
20*c79bc594SStefan Pintilie# CHECK:       mtvsrd vs32, r14
21*c79bc594SStefan Pintilie# CHECK:       lfd f14, 32(r1)
22*c79bc594SStefan Pintilie# CHECK:       addi r1, r1, 176
23*c79bc594SStefan Pintilie# CHECK:       blr
24*c79bc594SStefan Pintilie...
25*c79bc594SStefan Pintilie---
26*c79bc594SStefan Pintiliename:            NoStackUpdate
27*c79bc594SStefan Pintiliealignment:       16
28*c79bc594SStefan PintilietracksRegLiveness: true
29*c79bc594SStefan Pintilieliveins:
30*c79bc594SStefan Pintiliebody:             |
31*c79bc594SStefan Pintilie  bb.0.entry:
32*c79bc594SStefan Pintilie    $r14 = IMPLICIT_DEF
33*c79bc594SStefan Pintilie    $f14 = IMPLICIT_DEF
34*c79bc594SStefan Pintilie    BLR8 implicit undef $lr8, implicit undef $rm
35*c79bc594SStefan Pintilie
36*c79bc594SStefan Pintilie# CHECK-LABEL: NoStackUpdate
37*c79bc594SStefan Pintilie# CHECK-NOT:   stdu
38*c79bc594SStefan Pintilie# CHECK:       mtvsrd vs32, r14
39*c79bc594SStefan Pintilie# CHECK:       mfvsrd r14, vs32
40*c79bc594SStefan Pintilie# CHECK:       blr
41*c79bc594SStefan Pintilie...
42