2010-11-29 08:42:50 +08:00
|
|
|
@ RUN: llvm-mc -triple thumbv6-apple-darwin -show-encoding < %s | FileCheck %s
|
2010-11-19 09:33:10 +08:00
|
|
|
.code 16
|
|
|
|
|
|
|
|
@ CHECK: cmp r1, r2 @ encoding: [0x91,0x42]
|
|
|
|
cmp r1, r2
|
|
|
|
|
|
|
|
@ CHECK: pop {r1, r2, r4} @ encoding: [0x16,0xbc]
|
|
|
|
pop {r1, r2, r4}
|
2010-11-21 19:05:29 +08:00
|
|
|
|
|
|
|
@ CHECK: trap @ encoding: [0xfe,0xde]
|
|
|
|
trap
|
2010-11-29 08:18:15 +08:00
|
|
|
|
|
|
|
@ CHECK: blx r9 @ encoding: [0xc8,0x47]
|
|
|
|
blx r9
|
2010-11-29 08:42:50 +08:00
|
|
|
|
|
|
|
@ CHECK: rev r2, r3 @ encoding: [0x1a,0xba]
|
|
|
|
@ CHECK: rev16 r3, r4 @ encoding: [0x63,0xba]
|
|
|
|
@ CHECK: revsh r5, r6 @ encoding: [0xf5,0xba]
|
|
|
|
rev r2, r3
|
|
|
|
rev16 r3, r4
|
|
|
|
revsh r5, r6
|