diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-01 03:06:07 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-01 03:06:07 +0000 |
commit | 5f1f4773d95560b68a9c75856563e45e3a4d57e3 (patch) | |
tree | a0e8b18166512320ab6c4f8eca6b98a2edf82dbf /test/MC | |
parent | 2527bdac885f5822bb2b9a805fc9d80b35dd8f8b (diff) | |
download | llvm-5f1f4773d95560b68a9c75856563e45e3a4d57e3.tar.gz llvm-5f1f4773d95560b68a9c75856563e45e3a4d57e3.tar.bz2 llvm-5f1f4773d95560b68a9c75856563e45e3a4d57e3.tar.xz |
Merging r195803:
------------------------------------------------------------------------
r195803 | mcrosier | 2013-11-26 17:45:58 -0800 (Tue, 26 Nov 2013) | 1 line
[AArch64] Add support for NEON scalar floating-point absolute difference.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AArch64/neon-diagnostics.s | 15 | ||||
-rw-r--r-- | test/MC/AArch64/neon-scalar-abs.s | 10 | ||||
-rw-r--r-- | test/MC/Disassembler/AArch64/neon-instructions.txt | 8 |
3 files changed, 33 insertions, 0 deletions
diff --git a/test/MC/AArch64/neon-diagnostics.s b/test/MC/AArch64/neon-diagnostics.s index 7bc76a0829..be6c163741 100644 --- a/test/MC/AArch64/neon-diagnostics.s +++ b/test/MC/AArch64/neon-diagnostics.s @@ -7301,3 +7301,18 @@ // CHECK-ERROR: error: invalid operand for instruction // CHECK-ERROR: fcvtzu d0, s0 // CHECK-ERROR: ^ + +//---------------------------------------------------------------------- +// Scalar Floating-point Absolute Difference +//---------------------------------------------------------------------- + + + fabd s29, d24, s20 + fabd d29, s24, d20 + +// CHECK-ERROR: error: invalid operand for instruction +// CHECK-ERROR: fabd s29, d24, s20 +// CHECK-ERROR: ^ +// CHECK-ERROR: error: invalid operand for instruction +// CHECK-ERROR: fabd d29, s24, d20 +// CHECK-ERROR: ^ diff --git a/test/MC/AArch64/neon-scalar-abs.s b/test/MC/AArch64/neon-scalar-abs.s index ddcaa9dfef..d08756c0c1 100644 --- a/test/MC/AArch64/neon-scalar-abs.s +++ b/test/MC/AArch64/neon-scalar-abs.s @@ -9,6 +9,16 @@ abs d29, d24 // CHECK: abs d29, d24 // encoding: [0x1d,0xbb,0xe0,0x5e] + +//---------------------------------------------------------------------- +// Scalar Floating-point Absolute Difference +//---------------------------------------------------------------------- + + fabd s29, s24, s20 + fabd d29, d24, d20 + +// CHECK: fabd s29, s24, s20 // encoding: [0x1d,0xd7,0xb4,0x7e] +// CHECK: fabd d29, d24, d20 // encoding: [0x1d,0xd7,0xf4,0x7e] //---------------------------------------------------------------------- // Scalar Signed Saturating Absolute Value diff --git a/test/MC/Disassembler/AArch64/neon-instructions.txt b/test/MC/Disassembler/AArch64/neon-instructions.txt index 3ed228a641..f33c35bae3 100644 --- a/test/MC/Disassembler/AArch64/neon-instructions.txt +++ b/test/MC/Disassembler/AArch64/neon-instructions.txt @@ -2609,3 +2609,11 @@ # CHECK: fcvtzu d21, d14 0xac,0xb9,0xa1,0x7e 0xd5,0xb9,0xe1,0x7e + +#---------------------------------------------------------------------- +# Scalar Floating-point Absolute Difference +#---------------------------------------------------------------------- +# CHECK: fabd s29, s24, s20 +# CHECK: fabd d29, d24, d20 +0x1d,0xd7,0xb4,0x7e +0x1d,0xd7,0xf4,0x7e |