1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +sve2p1 \
3 // RUN: -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK
4 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +sve2p1 \
5 // RUN: -S -o /dev/null
7 void test_sve_asm(void) {
11 "add z0.d, p0/m, z0.d, z0.d\n"
12 "add z31.d, p0/m, z31.d, z31.d\n"
15 : "z0", "z31", "p0", "p15");
16 // CHECK-LABEL: @test_sve_asm
17 // CHECK: "~{z0},~{z31},~{p0},~{p15}"
20 void test_sve2p1_asm(void) {
25 ::: "pn0", "pn8", "pn15", "p3");
26 // CHECK-LABEL: @test_sve2p1_asm
27 // CHECK: "~{pn0},~{pn8},~{pn15},~{p3}"