aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/directive-arch_extension-mode-switch.s
blob: 7e4159f2e8f4d7a779c26e99b6c55b334bd225c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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