diff options
Diffstat (limited to 'test/MC/ARM/directive-arch_extension-mode-switch.s')
-rw-r--r-- | test/MC/ARM/directive-arch_extension-mode-switch.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/ARM/directive-arch_extension-mode-switch.s b/test/MC/ARM/directive-arch_extension-mode-switch.s new file mode 100644 index 0000000..7e4159f --- /dev/null +++ b/test/MC/ARM/directive-arch_extension-mode-switch.s @@ -0,0 +1,17 @@ +@ RUN: not llvm-mc -triple armv8-eabi -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + +@ Ensure that a mode switch does not revert the architectural features that were +@ alternated explicitly. + + .syntax unified + + .arch_extension noidiv + + .arm + udiv r0, r0, r1 +@ CHECK: instruction requires: divide in ARM + + .thumb + udiv r0, r0, r1 +@ CHECK: instruction requires: divide in THUMB + |