projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mips] Expand JAL instructions when PIC is enabled.
[oota-llvm.git]
/
test
/
MC
/
ARM
/
mode-switch.s
diff --git
a/test/MC/ARM/mode-switch.s
b/test/MC/ARM/mode-switch.s
index 99bd4b531081e312f8a0e76f031a4fe3646a9ba7..afcc082ba60d5f29a66f0c47cca2cc31f1ffa809 100644
(file)
--- a/
test/MC/ARM/mode-switch.s
+++ b/
test/MC/ARM/mode-switch.s
@@
-4,7
+4,7
@@
.code 16
add.w r0, r0, r1
.code 16
add.w r0, r0, r1
-@ CHECK: add
r0, r1 @ encoding: [0x08,0x44
]
+@ CHECK: add
.w r0, r0, r1 @ encoding: [0x00,0xeb,0x01,0x00
]
.code 32
add r0, r0, r1
.code 32
add r0, r0, r1
@@
-13,3
+13,14
@@
.code 16
adds r0, r0, r1
@ CHECK: adds r0, r0, r1 @ encoding: [0x40,0x18]
.code 16
adds r0, r0, r1
@ CHECK: adds r0, r0, r1 @ encoding: [0x40,0x18]
+
+.arm
+ add r0, r0, r1
+@ CHECK: add r0, r0, r1 @ encoding: [0x01,0x00,0x80,0xe0]
+
+.thumb
+ add.w r0, r0, r1
+ adds r0, r0, r1
+
+@ CHECK: add.w r0, r0, r1 @ encoding: [0x00,0xeb,0x01,0x00]
+@ CHECK: adds r0, r0, r1 @ encoding: [0x40,0x18]