16 lines · plain
1# RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s2 .thumb3 .thumb_func _t4_t:5 movw r3, :lower16:(Str-(PCinst+4))6 movt r3, :upper16:(Str-(PCinst+4))7 .thumb_func PCinst8PCinst:9 add r3, pc10 11 .section __TEXT,__cstring,cstring_literals12Str: 13 .asciz "Hello world\n"14# CHECK: movw r3, :lower16:(Str-PCinst-4)15# CHECK: movt r3, :upper16:(Str-PCinst-4)16