1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/tools/llvm-objdump/ARM/macho-symbolized-subtractor.test
Kevin Enderby 3ef3846d13 Plumb in the ARM thumb symbolizer in llvm-objdump’s Mach-O disassembler and
add the code and test cases for 32-bit ARM symbolizer.

Also fixed the printing of data in code as it was not using the table correctly
and needed to fix one of the test cases too.

This will break lld’s test/mach-o/arm-interworking-movw.yaml till the tweak
for that is made. Which I’ll be committing immediately after this commit.

llvm-svn: 221470
2014-11-06 19:00:13 +00:00

16 lines
402 B
Plaintext

# RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
.thumb
.thumb_func _t
_t:
movw r3, :lower16:(Str-(PCinst+4))
movt r3, :upper16:(Str-(PCinst+4))
.thumb_func PCinst
PCinst:
add r3, pc
.section __TEXT,__cstring,cstring_literals
Str:
.asciz "Hello world\n"
# CHECK: movw r3, :lower16:((Str-PCinst)-4)
# CHECK: movt r3, :upper16:((Str-PCinst)-4)