File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
llvm/test/CodeGen/AArch64 Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+ ; RUN: llc < %s -mtriple aarch64-none-linux-gnu | FileCheck %s
3+
4+ ; Checks SME ABI routines can be implemented as stubs without +sme.
5+
6+ define i1 @__aarch64_sme_accessible () {
7+ ; CHECK-LABEL: __aarch64_sme_accessible:
8+ ; CHECK: // %bb.0: // %entry
9+ ; CHECK-NEXT: mov w0, #1 // =0x1
10+ ; CHECK-NEXT: ret
11+ entry:
12+ ret i1 true
13+ }
14+
15+ define [2 x i64 ] @__arm_sme_state () {
16+ ; CHECK-LABEL: __arm_sme_state:
17+ ; CHECK: // %bb.0: // %entry
18+ ; CHECK-NEXT: mov x0, xzr
19+ ; CHECK-NEXT: mov x1, xzr
20+ ; CHECK-NEXT: ret
21+ entry:
22+ ret [2 x i64 ] zeroinitializer
23+ }
24+
25+ define void @__arm_tpidr2_restore () {
26+ ; CHECK-LABEL: __arm_tpidr2_restore:
27+ ; CHECK: // %bb.0: // %entry
28+ ; CHECK-NEXT: ret
29+ entry:
30+ ret void
31+ }
32+
33+ define void @__arm_tpidr2_save () {
34+ ; CHECK-LABEL: __arm_tpidr2_save:
35+ ; CHECK: // %bb.0: // %entry
36+ ; CHECK-NEXT: ret
37+ entry:
38+ ret void
39+ }
40+
41+ define void @__arm_za_disable () {
42+ ; CHECK-LABEL: __arm_za_disable:
43+ ; CHECK: // %bb.0: // %entry
44+ ; CHECK-NEXT: ret
45+ gientry:
46+ ret void
47+ }
You can’t perform that action at this time.
0 commit comments