diff options
Diffstat (limited to 'test/MC/AArch64')
-rw-r--r-- | test/MC/AArch64/neon-diagnostics.s | 10 | ||||
-rw-r--r-- | test/MC/AArch64/neon-scalar-abs.s | 8 |
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 |