279aa8f685
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
16 lines
402 B
Plaintext
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)
|