summaryrefslogtreecommitdiff
path: root/test/MC/AArch64
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2013-10-16 21:04:34 +0000
committerChad Rosier <mcrosier@codeaurora.org>2013-10-16 21:04:34 +0000
commita249914462c7b8f0c25b21eca77df264455290ee (patch)
tree5fbe997ccca041e5d0993faac291089082e73162 /test/MC/AArch64
parent700b91f07ca506f19c6d736bc020b36c678eb527 (diff)
downloadllvm-a249914462c7b8f0c25b21eca77df264455290ee.tar.gz
llvm-a249914462c7b8f0c25b21eca77df264455290ee.tar.bz2
llvm-a249914462c7b8f0c25b21eca77df264455290ee.tar.xz
[AArch64] Add support for NEON scalar absolute value instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AArch64')
-rw-r--r--test/MC/AArch64/neon-diagnostics.s10
-rw-r--r--test/MC/AArch64/neon-scalar-abs.s8
2 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/AArch64/neon-diagnostics.s b/test/MC/AArch64/neon-diagnostics.s
index 0a688178cf..ddd80ea178 100644
--- a/test/MC/AArch64/neon-diagnostics.s
+++ b/test/MC/AArch64/neon-diagnostics.s
@@ -4440,3 +4440,13 @@
// CHECK-ERROR: error: invalid operand for instruction
// CHECK-ERROR: usqadd d0, b1
// CHECK-ERROR: ^
+
+//----------------------------------------------------------------------
+// Scalar Absolute Value
+//----------------------------------------------------------------------
+
+ abs d29, s24
+
+// CHECK-ERROR: error: invalid operand for instruction
+// CHECK-ERROR: abs d29, s24
+// CHECK-ERROR: ^
diff --git a/test/MC/AArch64/neon-scalar-abs.s b/test/MC/AArch64/neon-scalar-abs.s
index 5e10752350..ddcaa9dfef 100644
--- a/test/MC/AArch64/neon-scalar-abs.s
+++ b/test/MC/AArch64/neon-scalar-abs.s
@@ -6,6 +6,14 @@
// Scalar Absolute Value
//----------------------------------------------------------------------
+ abs d29, d24
+
+// CHECK: abs d29, d24 // encoding: [0x1d,0xbb,0xe0,0x5e]
+
+//----------------------------------------------------------------------
+// Scalar Signed Saturating Absolute Value
+//----------------------------------------------------------------------
+
sqabs b19, b14
sqabs h21, h15
sqabs s20, s12