forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64][SVE] Asm: Add SVE predicate register definitions and parsin…
…g support Summary: Patch [1/4] in a series to add parsing of predicates and properly parse SVE ZIP1/ZIP2 instructions. Reviewers: rengolin, kristof.beyls, fhahn, mcrosier, evandro, echristo, efriedma Reviewed By: fhahn Subscribers: aemerson, javed.absar, llvm-commits, tschuett Differential Revision: https://reviews.llvm.org/D40360 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319315 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
c7436ce
commit a150a5a
Showing
5 changed files
with
207 additions
and
10 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
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,20 @@ | ||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+sve < %s 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-ERROR %s | ||
|
||
foo: | ||
// CHECK: error: sve predicate register without type specifier expected | ||
pbarb .req p1.b | ||
// CHECK: error: sve predicate register without type specifier expected | ||
pbarh .req p1.h | ||
// CHECK: error: sve predicate register without type specifier expected | ||
pbars .req p1.s | ||
// CHECK: error: sve predicate register without type specifier expected | ||
pbard .req p1.d | ||
|
||
// CHECK: error: sve vector register without type specifier expected | ||
zbarb .req z1.b | ||
// CHECK: error: sve vector register without type specifier expected | ||
zbarh .req z1.h | ||
// CHECK: error: sve vector register without type specifier expected | ||
zbars .req z1.s | ||
// CHECK: error: sve vector register without type specifier expected | ||
zbard .req z1.d |
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,9 @@ | ||
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -mattr=+sve -show-encoding < %s 2>&1 | FileCheck %s | ||
|
||
foo: | ||
// CHECK-NOT: error: | ||
pbar .req p1 | ||
|
||
// CHECK: add z0.s, z1.s, z2.s | ||
zbar .req z1 | ||
add z0.s, zbar.s, z2.s |