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: Support for FDUP_ZI (copy fp immediate) instruction.
Unpredicated copy of floating-point immediate value into SVE vector, along with MOV-aliases. Reviewers: rengolin, fhahn, samparker, SjoerdMeijer, javed.absar Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D47482 llvm-svn: 333744
- Loading branch information
1 parent
a041d84
commit f95ea04
Showing
6 changed files
with
1,773 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s | ||
|
||
// --------------------------------------------------------------------------// | ||
// Invalid immediates | ||
|
||
fdup z0.h, #-0.05859375 // r = -4, n = 15 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.h, #-0.05859375 // r = -4, n = 15 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.s, #-0.05859375 // r = -4, n = 15 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.s, #-0.05859375 // r = -4, n = 15 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.d, #-0.05859375 // r = -4, n = 15 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.d, #-0.05859375 // r = -4, n = 15 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.h, #-64.00000000 // r = 5, n = 32 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.h, #-64.00000000 // r = 5, n = 32 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.s, #-64.00000000 // r = 5, n = 32 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.s, #-64.00000000 // r = 5, n = 32 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.d, #-64.00000000 // r = 5, n = 32 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.d, #-64.00000000 // r = 5, n = 32 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.h, #0.05859375 // r = -4, n = 15 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.h, #0.05859375 // r = -4, n = 15 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.s, #0.05859375 // r = -4, n = 15 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.s, #0.05859375 // r = -4, n = 15 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.d, #0.05859375 // r = -4, n = 15 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.d, #0.05859375 // r = -4, n = 15 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.h, #64.00000000 // r = 5, n = 32 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.h, #64.00000000 // r = 5, n = 32 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.s, #64.00000000 // r = 5, n = 32 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.s, #64.00000000 // r = 5, n = 32 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
||
fdup z0.d, #64.00000000 // r = 5, n = 32 | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected compatible register or floating-point constant | ||
// CHECK-NEXT: fdup z0.d, #64.00000000 // r = 5, n = 32 | ||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |
Oops, something went wrong.