summaryrefslogtreecommitdiff
path: root/test/MC/AArch64/basic-a64-diagnostics.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AArch64/basic-a64-diagnostics.s')
-rw-r--r--test/MC/AArch64/basic-a64-diagnostics.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/AArch64/basic-a64-diagnostics.s b/test/MC/AArch64/basic-a64-diagnostics.s
index 07e6d012e934d..1d7ba710a9a18 100644
--- a/test/MC/AArch64/basic-a64-diagnostics.s
+++ b/test/MC/AArch64/basic-a64-diagnostics.s
@@ -1088,6 +1088,23 @@
// CHECK-ERROR-NEXT: ubfx w3, wsp, #10, #8
// CHECK-ERROR-NEXT: ^
+ bfc wsp, #3, #6
+ bfc w4, #2, #31
+ bfc sp, #0, #1
+ bfc x6, #0, #0
+// CHECK-ERROR: error: invalid operand for instruction
+// CHECK-ERROR-NEXT: bfc wsp, #3, #6
+// CHECK-ERROR-NEXT: ^
+// CHECK-ERROR-NEXT: error: requested insert overflows register
+// CHECK-ERROR-NEXT: bfc w4, #2, #31
+// CHECK-ERROR-NEXT: ^
+// CHECK-ERROR-NEXT: error: invalid operand for instruction
+// CHECK-ERROR-NEXT: bfc sp, #0, #1
+// CHECK-ERROR-NEXT: ^
+// CHECK-ERROR-NEXT: error: expected integer in range [1, 32]
+// CHECK-ERROR-NEXT: bfc x6, #0, #0
+// CHECK-ERROR-NEXT: ^
+
//------------------------------------------------------------------------------
// Compare & branch (immediate)
//------------------------------------------------------------------------------