linux-packaging-mono/external/llvm/test/tools/llvm-objdump/ARM/macho-symbolized-subtractor.test
Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +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)