SimplifyCFG: don't remove unreachable default switch destinations
[oota-llvm.git] / test / MC / ARM / directive-arch_extension-mode-switch.s
1 @ RUN: not llvm-mc -triple armv8-eabi -filetype asm -o /dev/null %s 2>&1 | FileCheck %s
2
3 @ Ensure that a mode switch does not revert the architectural features that were
4 @ alternated explicitly.
5
6         .syntax unified
7
8         .arch_extension noidiv
9
10         .arm
11         udiv r0, r0, r1
12 @ CHECK: instruction requires: divide in ARM
13
14         .thumb
15         udiv r0, r0, r1
16 @ CHECK: instruction requires: divide in THUMB
17