1 @ Test ARM
/ Thumb mode switching with
.code
2 @ RUN
: llvm-mc
-triple armv7-unknown-unknown
-show-encoding
< %s | FileCheck
%s
3 @ RUN
: llvm-mc
-triple thumbv7-unknown-unknown
-show-encoding
<%s | FileCheck
%s
7 @ CHECK
: add.w
r0, r0, r1 @ encoding
: [0x00,0xeb,0x01,0x00]
11 @ CHECK
: add r0, r0, r1 @ encoding
: [0x01,0x00,0x80,0xe0]
15 @ CHECK
: adds
r0, r0, r1 @ encoding
: [0x40,0x18]
19 @ CHECK
: add r0, r0, r1 @ encoding
: [0x01,0x00,0x80,0xe0]
25 @ CHECK
: add.w
r0, r0, r1 @ encoding
: [0x00,0xeb,0x01,0x00]
26 @ CHECK
: adds
r0, r0, r1 @ encoding
: [0x40,0x18]