• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -verify-machineinstrs -enable-machine-outliner -mtriple \
2; RUN: aarch64-arm-none-eabi %s -o - | FileCheck %s --check-prefixes CHECK,V8A
3; RUN-V83A: llc -verify-machineinstrs -enable-machine-outliner -mtriple \
4; RUN-V83A: aarch64-arm-none-eabi -mattr=+v8.3a %s -o - > %t
5; RUN-V83A: FileCheck --check-prefixes CHECK,V83A < %t %s
6
7define void @a() "sign-return-address"="all" "sign-return-address-key"="a_key" nounwind {
8; CHECK-LABEL:      a:                                     // @a
9; V8A:              hint #25
10; V83A:             paciasp
11  %1 = alloca i32, align 4
12  %2 = alloca i32, align 4
13  %3 = alloca i32, align 4
14  %4 = alloca i32, align 4
15  %5 = alloca i32, align 4
16  %6 = alloca i32, align 4
17  store i32 1, i32* %1, align 4
18  store i32 2, i32* %2, align 4
19  store i32 3, i32* %3, align 4
20  store i32 4, i32* %4, align 4
21  store i32 5, i32* %5, align 4
22  store i32 6, i32* %6, align 4
23; V8A:              hint #29
24; V83A:             autiasp
25  ret void
26}
27
28define void @b() "sign-return-address"="all" nounwind {
29; CHECK-LABEL:      b:                                     // @b
30; V8A:              hint #25
31; V83A:             paciasp
32  %1 = alloca i32, align 4
33  %2 = alloca i32, align 4
34  %3 = alloca i32, align 4
35  %4 = alloca i32, align 4
36  %5 = alloca i32, align 4
37  %6 = alloca i32, align 4
38  store i32 1, i32* %1, align 4
39  store i32 2, i32* %2, align 4
40  store i32 3, i32* %3, align 4
41  store i32 4, i32* %4, align 4
42  store i32 5, i32* %5, align 4
43  store i32 6, i32* %6, align 4
44; V8A:              hint #29
45; V83A:             autiasp
46  ret void
47}
48
49define void @c() "sign-return-address"="all" nounwind {
50; CHECK-LABEL:      c:                                     // @c
51; V8A:              hint #25
52; V83A:             paciasp
53  %1 = alloca i32, align 4
54  %2 = alloca i32, align 4
55  %3 = alloca i32, align 4
56  %4 = alloca i32, align 4
57  %5 = alloca i32, align 4
58  %6 = alloca i32, align 4
59  store i32 1, i32* %1, align 4
60  store i32 2, i32* %2, align 4
61  store i32 3, i32* %3, align 4
62  store i32 4, i32* %4, align 4
63  store i32 5, i32* %5, align 4
64  store i32 6, i32* %6, align 4
65; V8A:              hint #29
66; V83A:             autiasp
67  ret void
68}
69
70; CHECK-LABEL:      OUTLINED_FUNCTION_0:
71; V8A:                hint #25
72; V83A:               paciasp
73; V8A:                hint #29
74; V83A:               autiasp
75; CHECK-NEXT:         ret
76