File: machine-outliner-retaddr-sign-same-scope-diff-key.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (168 lines) | stat: -rw-r--r-- 5,232 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -verify-machineinstrs -enable-machine-outliner -mtriple aarch64 %s -o - | \
; RUN:   FileCheck %s --check-prefixes CHECK,V8A
; RUN: llc -verify-machineinstrs -enable-machine-outliner -mtriple aarch64 -mattr=+v8.3a %s -o - | \
; RUN:   FileCheck %s --check-prefixes CHECK,V83A

define void @a() "sign-return-address"="all" {
; V8A-LABEL: a:
; V8A:       // %bb.0:
; V8A-NEXT:    hint #25
; V8A-NEXT:    .cfi_negate_ra_state
; V8A-NEXT:    sub sp, sp, #32
; V8A-NEXT:    .cfi_def_cfa_offset 32
; V8A-NEXT:    mov w8, #1 // =0x1
; V8A-NEXT:    mov w9, #2 // =0x2
; V8A-NEXT:    stp w9, w8, [sp, #24]
; V8A-NEXT:    mov w9, #3 // =0x3
; V8A-NEXT:    mov w8, #4 // =0x4
; V8A-NEXT:    stp w8, w9, [sp, #16]
; V8A-NEXT:    mov w9, #5 // =0x5
; V8A-NEXT:    mov w8, #6 // =0x6
; V8A-NEXT:    stp w8, w9, [sp, #8]
; V8A-NEXT:    add sp, sp, #32
; V8A-NEXT:    hint #29
; V8A-NEXT:    ret
;
; V83A-LABEL: a:
; V83A:       // %bb.0:
; V83A-NEXT:    paciasp
; V83A-NEXT:    .cfi_negate_ra_state
; V83A-NEXT:    sub sp, sp, #32
; V83A-NEXT:    .cfi_def_cfa_offset 32
; V83A-NEXT:    mov w8, #1 // =0x1
; V83A-NEXT:    mov w9, #2 // =0x2
; V83A-NEXT:    stp w9, w8, [sp, #24]
; V83A-NEXT:    mov w9, #3 // =0x3
; V83A-NEXT:    mov w8, #4 // =0x4
; V83A-NEXT:    stp w8, w9, [sp, #16]
; V83A-NEXT:    mov w9, #5 // =0x5
; V83A-NEXT:    mov w8, #6 // =0x6
; V83A-NEXT:    stp w8, w9, [sp, #8]
; V83A-NEXT:    add sp, sp, #32
; V83A-NEXT:    retaa
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store i32 1, ptr %1, align 4
  store i32 2, ptr %2, align 4
  store i32 3, ptr %3, align 4
  store i32 4, ptr %4, align 4
  store i32 5, ptr %5, align 4
  store i32 6, ptr %6, align 4
  ret void
}

define void @b() "sign-return-address"="all" "sign-return-address-key"="b_key" {
; V8A-LABEL: b:
; V8A:       // %bb.0:
; V8A-NEXT:    .cfi_b_key_frame
; V8A-NEXT:    hint #27
; V8A-NEXT:    .cfi_negate_ra_state
; V8A-NEXT:    sub sp, sp, #32
; V8A-NEXT:    .cfi_def_cfa_offset 32
; V8A-NEXT:    mov w8, #1 // =0x1
; V8A-NEXT:    mov w9, #2 // =0x2
; V8A-NEXT:    stp w9, w8, [sp, #24]
; V8A-NEXT:    mov w9, #3 // =0x3
; V8A-NEXT:    mov w8, #4 // =0x4
; V8A-NEXT:    stp w8, w9, [sp, #16]
; V8A-NEXT:    mov w9, #5 // =0x5
; V8A-NEXT:    mov w8, #6 // =0x6
; V8A-NEXT:    stp w8, w9, [sp, #8]
; V8A-NEXT:    add sp, sp, #32
; V8A-NEXT:    hint #31
; V8A-NEXT:    ret
;
; V83A-LABEL: b:
; V83A:       // %bb.0:
; V83A-NEXT:    .cfi_b_key_frame
; V83A-NEXT:    pacibsp
; V83A-NEXT:    .cfi_negate_ra_state
; V83A-NEXT:    sub sp, sp, #32
; V83A-NEXT:    .cfi_def_cfa_offset 32
; V83A-NEXT:    mov w8, #1 // =0x1
; V83A-NEXT:    mov w9, #2 // =0x2
; V83A-NEXT:    stp w9, w8, [sp, #24]
; V83A-NEXT:    mov w9, #3 // =0x3
; V83A-NEXT:    mov w8, #4 // =0x4
; V83A-NEXT:    stp w8, w9, [sp, #16]
; V83A-NEXT:    mov w9, #5 // =0x5
; V83A-NEXT:    mov w8, #6 // =0x6
; V83A-NEXT:    stp w8, w9, [sp, #8]
; V83A-NEXT:    add sp, sp, #32
; V83A-NEXT:    retab
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store i32 1, ptr %1, align 4
  store i32 2, ptr %2, align 4
  store i32 3, ptr %3, align 4
  store i32 4, ptr %4, align 4
  store i32 5, ptr %5, align 4
  store i32 6, ptr %6, align 4
  ret void
}

define void @c() "sign-return-address"="all" {
; V8A-LABEL: c:
; V8A:       // %bb.0:
; V8A-NEXT:    hint #25
; V8A-NEXT:    .cfi_negate_ra_state
; V8A-NEXT:    sub sp, sp, #32
; V8A-NEXT:    .cfi_def_cfa_offset 32
; V8A-NEXT:    mov w8, #1 // =0x1
; V8A-NEXT:    mov w9, #2 // =0x2
; V8A-NEXT:    stp w9, w8, [sp, #24]
; V8A-NEXT:    mov w9, #3 // =0x3
; V8A-NEXT:    mov w8, #4 // =0x4
; V8A-NEXT:    stp w8, w9, [sp, #16]
; V8A-NEXT:    mov w9, #5 // =0x5
; V8A-NEXT:    mov w8, #6 // =0x6
; V8A-NEXT:    stp w8, w9, [sp, #8]
; V8A-NEXT:    add sp, sp, #32
; V8A-NEXT:    hint #29
; V8A-NEXT:    ret
;
; V83A-LABEL: c:
; V83A:       // %bb.0:
; V83A-NEXT:    paciasp
; V83A-NEXT:    .cfi_negate_ra_state
; V83A-NEXT:    sub sp, sp, #32
; V83A-NEXT:    .cfi_def_cfa_offset 32
; V83A-NEXT:    mov w8, #1 // =0x1
; V83A-NEXT:    mov w9, #2 // =0x2
; V83A-NEXT:    stp w9, w8, [sp, #24]
; V83A-NEXT:    mov w9, #3 // =0x3
; V83A-NEXT:    mov w8, #4 // =0x4
; V83A-NEXT:    stp w8, w9, [sp, #16]
; V83A-NEXT:    mov w9, #5 // =0x5
; V83A-NEXT:    mov w8, #6 // =0x6
; V83A-NEXT:    stp w8, w9, [sp, #8]
; V83A-NEXT:    add sp, sp, #32
; V83A-NEXT:    retaa
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store i32 1, ptr %1, align 4
  store i32 2, ptr %2, align 4
  store i32 3, ptr %3, align 4
  store i32 4, ptr %4, align 4
  store i32 5, ptr %5, align 4
  store i32 6, ptr %6, align 4
  ret void
}

; CHECK-NOT:      OUTLINED_FUNCTION_0:
; CHECK-NOT:      // -- Begin function
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
; CHECK: {{.*}}