aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/aarch64-sve-inline-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/aarch64-sve-inline-asm.c')
-rw-r--r--test/CodeGen/aarch64-sve-inline-asm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/aarch64-sve-inline-asm.c b/test/CodeGen/aarch64-sve-inline-asm.c
new file mode 100644
index 0000000000..90e7777925
--- /dev/null
+++ b/test/CodeGen/aarch64-sve-inline-asm.c
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK
+
+void test_sve_asm() {
+ asm volatile(
+ "ptrue p0.d\n"
+ "ptrue p15.d\n"
+ "add z0.d, p0/m, z0.d, z0.d\n"
+ "add z31.d, p0/m, z31.d, z31.d\n"
+ :
+ :
+ : "z0", "z31", "p0", "p15");
+ // CHECK: "~{z0},~{z31},~{p0},~{p15}"
+}