1 # NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 # RUN: llc -mattr=+sve -mtriple=aarch64-none-linux-gnu -start-before=prologepilog %s -o - | FileCheck %s
5 define aarch64_sve_vector_pcs void @fix_restorepoint_p4() uwtable { entry: unreachable }
6 ; CHECK-LABEL: fix_restorepoint_p4:
7 ; CHECK: // %bb.0: // %entry
8 ; CHECK-NEXT: str x29, [sp, #-16]! // 8-byte Folded Spill
9 ; CHECK-NEXT: .cfi_def_cfa_offset 16
10 ; CHECK-NEXT: .cfi_offset w29, -16
11 ; CHECK-NEXT: addvl sp, sp, #-2
12 ; CHECK-NEXT: .cfi_escape 0x0f, 0x0c, 0x8f, 0x00, 0x11, 0x10, 0x22, 0x11, 0x10, 0x92, 0x2e, 0x00, 0x1e, 0x22 // sp + 16 + 16 * VG
13 ; CHECK-NEXT: str p4, [sp, #7, mul vl] // 2-byte Folded Spill
14 ; CHECK-NEXT: str z8, [sp, #1, mul vl] // 16-byte Folded Spill
15 ; CHECK-NEXT: .cfi_escape 0x10, 0x48, 0x0a, 0x11, 0x70, 0x22, 0x11, 0x78, 0x92, 0x2e, 0x00, 0x1e, 0x22 // $d8 @ cfa - 16 - 8 * VG
16 ; CHECK-NEXT: addvl sp, sp, #-1
17 ; CHECK-NEXT: .cfi_escape 0x0f, 0x0c, 0x8f, 0x00, 0x11, 0x10, 0x22, 0x11, 0x18, 0x92, 0x2e, 0x00, 0x1e, 0x22 // sp + 16 + 24 * VG
18 ; CHECK-NEXT: // implicit-def: $z8
19 ; CHECK-NEXT: // implicit-def: $p4
20 ; CHECK-NEXT: addvl sp, sp, #1
21 ; CHECK-NEXT: .cfi_escape 0x0f, 0x0c, 0x8f, 0x00, 0x11, 0x10, 0x22, 0x11, 0x10, 0x92, 0x2e, 0x00, 0x1e, 0x22 // sp + 16 + 16 * VG
22 ; CHECK-NEXT: ldr p4, [sp, #7, mul vl] // 2-byte Folded Reload
23 ; CHECK-NEXT: ldr z8, [sp, #1, mul vl] // 16-byte Folded Reload
24 ; CHECK-NEXT: addvl sp, sp, #2
25 ; CHECK-NEXT: .cfi_def_cfa wsp, 16
26 ; CHECK-NEXT: .cfi_restore z8
27 ; CHECK-NEXT: ldr x29, [sp], #16 // 8-byte Folded Reload
28 ; CHECK-NEXT: .cfi_def_cfa_offset 0
29 ; CHECK-NEXT: .cfi_restore w29
32 name: fix_restorepoint_p4
34 - { id: 0, stack-id: scalable-vector, size: 16, alignment: 16 }