aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/udf-thumb-2.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/udf-thumb-2.s')
-rw-r--r--test/MC/ARM/udf-thumb-2.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ARM/udf-thumb-2.s b/test/MC/ARM/udf-thumb-2.s
new file mode 100644
index 0000000..beb6549
--- /dev/null
+++ b/test/MC/ARM/udf-thumb-2.s
@@ -0,0 +1,13 @@
+@ RUN: llvm-mc -triple thumbv7-eabi -mattr +thumb2 -show-encoding %s | FileCheck %s
+
+ .syntax unified
+ .text
+ .thumb
+
+undefined:
+ udf #0
+ udf.w #0
+
+@ CHECK: udf #0 @ encoding: [0x00,0xde]
+@ CHECK: udf.w #0 @ encoding: [0xf0,0xf7,0x00,0xa0]
+