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-neg.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 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 //---------------------------------------------------------------------- |