1 @ RUN
: llvm-mc
-triple arm-none-eabi
-filetype asm
%s
2>%t | FileCheck
%s
2 @ RUN
: FileCheck
%s
<%t --check-prefix
=STDERR
8 @ In ARM mode
, switch to an arch which has ARM
and Thumb
, no warning
or .code directive (stay in ARM mode)
10 @ STDERR-
NOT: [[@LINE-
1]]:{{[0-9]+}}: warning
:
12 @ CHECK
: .arch armv7-a
15 @ In ARM mode
, switch to an arch which has Thumb only
, expect warning
and .code 16 directive
17 @ STDERR
: [[@LINE-
1]]:{{[0-9]+}}: warning
: new target does
not support arm mode
, switching to thumb mode
19 @ CHECK
: .arch armv6-m
21 @ In Thumb mode
, switch to an arch which has ARM
and Thumb
, no warning
or .code directive (stay in Thumb mode)
23 @ STDERR-
NOT: [[@LINE-
1]]:{{[0-9]+}}: warning
:
25 @ CHECK
: .arch armv7-a
28 @ In Thumb mode
, switch to
a CPU which has ARM
and Thumb
, no warning
or .code directive (stay in Thumb mode)
30 @ STDERR-
NOT: [[@LINE-
1]]:{{[0-9]+}}: warning
:
32 @ CHECK
: .cpu cortex-a8
39 @ In ARM mode
, switch to
a CPU which has ARM
and Thumb
, no warning
or .code directive (stay in ARM mode)
41 @ STDERR-
NOT: [[@LINE-
1]]:{{[0-9]+}}: warning
:
43 @ CHECK
: .cpu cortex-a8
46 @ In ARM mode
, switch to
a CPU which has Thumb only
, expect warning
and .code 16 directive
48 @ STDERR
: [[@LINE-
1]]:{{[0-9]+}}: warning
: new target does
not support arm mode
, switching to thumb mode
49 @ CHECK
: .cpu cortex-m3
52 @ We don
't have any ARM-only targets (i.e. v4), so we can't test the forced Thumb-
>ARM case