mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
2b39bb5c9b
Before we printed a warning to stderr and left the actual output stream in a mess. This tries to print a .long or .short representation of what we saw (as if there was a data-in-code directive). This isn't guaranteed to restore synchronization in Thumb-mode (if the invalid instruction was supposed to be 32-bits, we may be off-by-16 for the rest of the function). But there's no certain way to deal with that, and it's invalid code anyway (if the data really wasn't an instruction, the user can add proper .data_in_code directives if they care) llvm-svn: 267250
21 lines
411 B
Plaintext
21 lines
411 B
Plaintext
@ RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
|
|
@ RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -arch armv7 -m -d - | FileCheck %s
|
|
|
|
.thumb
|
|
.thumb_func _t
|
|
_t:
|
|
nop
|
|
nop
|
|
.align 2
|
|
.arm
|
|
_a:
|
|
nop
|
|
.long 0xf8765432
|
|
nop
|
|
|
|
@ CHECK: 00 bf nop
|
|
@ CHECK-NEXT: 00 bf nop
|
|
@ CHECK: 00 f0 20 e3 nop
|
|
@ CHECK-NEXT: .long 0xf8765432
|
|
@ CHECK-NEXT: nop
|