1 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -mattr=+sme2 -enable-machine-outliner -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -mattr=+sme2 -enable-machine-outliner -verify-machineinstrs < %s | FileCheck %s -check-prefix=OUTLINER
4 declare void @callee();
6 define void @streaming_mode_change1() #0 {
7 ; CHECK-LABEL: streaming_mode_change1:
9 ; CHECK-NEXT: stp d15, d14, [sp, #-80]! // 16-byte Folded Spill
11 ; CHECK-NEXT: stp d13, d12, [sp, #16] // 16-byte Folded Spill
12 ; CHECK-NEXT: stp d11, d10, [sp, #32] // 16-byte Folded Spill
13 ; CHECK-NEXT: stp d9, d8, [sp, #48] // 16-byte Folded Spill
14 ; CHECK-NEXT: stp x30, x9, [sp, #64] // 16-byte Folded Spill
15 ; CHECK-NEXT: smstop sm
16 ; CHECK-NEXT: bl callee
17 ; CHECK-NEXT: smstart sm
18 ; CHECK-NEXT: ldp d9, d8, [sp, #48] // 16-byte Folded Reload
19 ; CHECK-NEXT: ldr x30, [sp, #64] // 8-byte Folded Reload
20 ; CHECK-NEXT: ldp d11, d10, [sp, #32] // 16-byte Folded Reload
21 ; CHECK-NEXT: ldp d13, d12, [sp, #16] // 16-byte Folded Reload
22 ; CHECK-NEXT: ldp d15, d14, [sp], #80 // 16-byte Folded Reload
25 ; OUTLINER-LABEL: streaming_mode_change1:
26 ; OUTLINER-NOT: OUTLINED_FUNCTION_
32 define void @streaming_mode_change2() #0 {
33 ; CHECK-LABEL: streaming_mode_change2:
35 ; CHECK-NEXT: stp d15, d14, [sp, #-80]! // 16-byte Folded Spill
37 ; CHECK-NEXT: stp d13, d12, [sp, #16] // 16-byte Folded Spill
38 ; CHECK-NEXT: stp d11, d10, [sp, #32] // 16-byte Folded Spill
39 ; CHECK-NEXT: stp d9, d8, [sp, #48] // 16-byte Folded Spill
40 ; CHECK-NEXT: stp x30, x9, [sp, #64] // 16-byte Folded Spill
41 ; CHECK-NEXT: smstop sm
42 ; CHECK-NEXT: bl callee
43 ; CHECK-NEXT: smstart sm
44 ; CHECK-NEXT: ldp d9, d8, [sp, #48] // 16-byte Folded Reload
45 ; CHECK-NEXT: ldr x30, [sp, #64] // 8-byte Folded Reload
46 ; CHECK-NEXT: ldp d11, d10, [sp, #32] // 16-byte Folded Reload
47 ; CHECK-NEXT: ldp d13, d12, [sp, #16] // 16-byte Folded Reload
48 ; CHECK-NEXT: ldp d15, d14, [sp], #80 // 16-byte Folded Reload
51 ; OUTLINER-LABEL: streaming_mode_change2:
52 ; OUTLINER-NOT: OUTLINED_FUNCTION_
58 define void @streaming_mode_change3() #0 {
59 ; CHECK-LABEL: streaming_mode_change3:
61 ; CHECK-NEXT: stp d15, d14, [sp, #-80]! // 16-byte Folded Spill
63 ; CHECK-NEXT: stp d13, d12, [sp, #16] // 16-byte Folded Spill
64 ; CHECK-NEXT: stp d11, d10, [sp, #32] // 16-byte Folded Spill
65 ; CHECK-NEXT: stp d9, d8, [sp, #48] // 16-byte Folded Spill
66 ; CHECK-NEXT: stp x30, x9, [sp, #64] // 16-byte Folded Spill
67 ; CHECK-NEXT: smstop sm
68 ; CHECK-NEXT: bl callee
69 ; CHECK-NEXT: smstart sm
70 ; CHECK-NEXT: ldp d9, d8, [sp, #48] // 16-byte Folded Reload
71 ; CHECK-NEXT: ldr x30, [sp, #64] // 8-byte Folded Reload
72 ; CHECK-NEXT: ldp d11, d10, [sp, #32] // 16-byte Folded Reload
73 ; CHECK-NEXT: ldp d13, d12, [sp, #16] // 16-byte Folded Reload
74 ; CHECK-NEXT: ldp d15, d14, [sp], #80 // 16-byte Folded Reload
77 ; OUTLINER-LABEL: streaming_mode_change3:
78 ; OUTLINER-NOT: OUTLINED_FUNCTION_
84 attributes #0 = { "aarch64_pstate_sm_enabled" nounwind }