diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2013-10-16 21:04:39 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2013-10-16 21:04:39 +0000 |
commit | dceac4c5a611f26ebcc88c75cc39075c7df2466e (patch) | |
tree | 898987ddcb712fdb62a7ac139882726d376a03af /test/MC | |
parent | a249914462c7b8f0c25b21eca77df264455290ee (diff) | |
download | llvm-dceac4c5a611f26ebcc88c75cc39075c7df2466e.tar.gz llvm-dceac4c5a611f26ebcc88c75cc39075c7df2466e.tar.bz2 llvm-dceac4c5a611f26ebcc88c75cc39075c7df2466e.tar.xz |
[AArch64] Add support for NEON scalar negate instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AArch64/neon-diagnostics.s | 10 | ||||
-rw-r--r-- | test/MC/AArch64/neon-scalar-neg.s | 8 | ||||
-rw-r--r-- | test/MC/Disassembler/AArch64/neon-instructions.txt | 6 |
3 files changed, 24 insertions, 0 deletions
diff --git a/test/MC/AArch64/neon-diagnostics.s b/test/MC/AArch64/neon-diagnostics.s index ddd80ea178..411ea9fe0b 100644 --- a/test/MC/AArch64/neon-diagnostics.s +++ b/test/MC/AArch64/neon-diagnostics.s @@ -4450,3 +4450,13 @@ // CHECK-ERROR: error: invalid operand for instruction // CHECK-ERROR: abs d29, s24 // CHECK-ERROR: ^ + +//---------------------------------------------------------------------- +// Scalar Negate +//---------------------------------------------------------------------- + + neg d29, s24 + +// CHECK-ERROR: error: invalid operand for instruction +// CHECK-ERROR: neg d29, s24 +// CHECK-ERROR: ^ diff --git a/test/MC/AArch64/neon-scalar-neg.s b/test/MC/AArch64/neon-scalar-neg.s index 0e637da794..8e5d61dd24 100644 --- a/test/MC/AArch64/neon-scalar-neg.s +++ b/test/MC/AArch64/neon-scalar-neg.s @@ -3,6 +3,14 @@ // Check that the assembler can handle the documented syntax for AArch64 //---------------------------------------------------------------------- +// Scalar Negate +//---------------------------------------------------------------------- + + neg d29, d24 + +// CHECK: neg d29, d24 // encoding: [0x1d,0xbb,0xe0,0x7e] + +//---------------------------------------------------------------------- // Scalar Signed Saturating Negate //---------------------------------------------------------------------- diff --git a/test/MC/Disassembler/AArch64/neon-instructions.txt b/test/MC/Disassembler/AArch64/neon-instructions.txt index 81fffd6c7c..c70a2f6486 100644 --- a/test/MC/Disassembler/AArch64/neon-instructions.txt +++ b/test/MC/Disassembler/AArch64/neon-instructions.txt @@ -1619,6 +1619,12 @@ 0x92,0x79,0xe0,0x5e #---------------------------------------------------------------------- +# Scalar Negate +#---------------------------------------------------------------------- +# CHECK: neg d29, d24 +0x1d,0xbb,0xe0,0x7e + +#---------------------------------------------------------------------- # Scalar Signed Saturating Negate #---------------------------------------------------------------------- # CHECK: sqneg b19, b14 |