1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64 -mcpu=cortex-a55 -o - %s | FileCheck %s
4 ; Check that stp are not suppressed at minsize.
6 %T_IN_BLOCK = type [ 2 x { double, { double, double } } ]
7 declare %T_IN_BLOCK @return_in_block()
8 @in_block_store = dso_local global %T_IN_BLOCK zeroinitializer, align 8
10 define void @test_default() uwtable {
11 ; CHECK-LABEL: test_default:
13 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
14 ; CHECK-NEXT: .cfi_def_cfa_offset 16
15 ; CHECK-NEXT: .cfi_offset w30, -16
16 ; CHECK-NEXT: bl return_in_block
17 ; CHECK-NEXT: adrp x8, in_block_store
18 ; CHECK-NEXT: add x8, x8, :lo12:in_block_store
19 ; CHECK-NEXT: str d0, [x8]
20 ; CHECK-NEXT: str d1, [x8, #8]
21 ; CHECK-NEXT: str d2, [x8, #16]
22 ; CHECK-NEXT: str d3, [x8, #24]
23 ; CHECK-NEXT: str d4, [x8, #32]
24 ; CHECK-NEXT: str d5, [x8, #40]
25 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
26 ; CHECK-NEXT: .cfi_def_cfa_offset 0
27 ; CHECK-NEXT: .cfi_restore w30
29 %1 = call %T_IN_BLOCK @return_in_block()
30 store %T_IN_BLOCK %1, ptr @in_block_store
34 define void @test_minsize() minsize uwtable {
35 ; CHECK-LABEL: test_minsize:
37 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
38 ; CHECK-NEXT: .cfi_def_cfa_offset 16
39 ; CHECK-NEXT: .cfi_offset w30, -16
40 ; CHECK-NEXT: bl return_in_block
41 ; CHECK-NEXT: adrp x8, in_block_store
42 ; CHECK-NEXT: add x8, x8, :lo12:in_block_store
43 ; CHECK-NEXT: stp d0, d1, [x8]
44 ; CHECK-NEXT: stp d2, d3, [x8, #16]
45 ; CHECK-NEXT: stp d4, d5, [x8, #32]
46 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
48 %1 = call %T_IN_BLOCK @return_in_block()
49 store %T_IN_BLOCK %1, ptr @in_block_store
53 define void @test_optsize() optsize uwtable {
54 ; CHECK-LABEL: test_optsize:
56 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
57 ; CHECK-NEXT: .cfi_def_cfa_offset 16
58 ; CHECK-NEXT: .cfi_offset w30, -16
59 ; CHECK-NEXT: bl return_in_block
60 ; CHECK-NEXT: adrp x8, in_block_store
61 ; CHECK-NEXT: add x8, x8, :lo12:in_block_store
62 ; CHECK-NEXT: stp d0, d1, [x8]
63 ; CHECK-NEXT: stp d2, d3, [x8, #16]
64 ; CHECK-NEXT: stp d4, d5, [x8, #32]
65 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
66 ; CHECK-NEXT: .cfi_def_cfa_offset 0
67 ; CHECK-NEXT: .cfi_restore w30
69 %1 = call %T_IN_BLOCK @return_in_block()
70 store %T_IN_BLOCK %1, ptr @in_block_store