Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SVE][Inline-Asm] Add support to specify SVE registers in the clobber…
… list Adds the SVE vector and predicate registers to the list of known registers. Patch by Kerry McLaughlin. Reviewers: erichkeane, sdesmalen, rengolin Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D64739 llvm-svn: 366878
- Loading branch information
1 parent
ec4d8cd
commit 2b29088
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}" | ||
} |