1 @ RUN
: llvm-mc
-triple thumbv7-apple-ios
%s
-filetype
=obj
-o
%t
2 @ RUN
: llvm-objdump
-macho
-d
%t -triple thumbv7-apple-ios | FileCheck
%s
4 @ ARM relocatable object files try to look like they
're pre-linked, so the
5 @ offsets in the instructions are a best-guess. I suspect the "-3" should b
7 @ CHECK: movw r1, :lower16:((_bar-8)-3)
9 @ CHECK: .long {{[0-9]*[13579]}}
14 movw r1, :lower16:(_bar-(LPC2_0+4))
15 movt r1, :upper16:(_bar-(LPC2_0+4))
30 .subsections_via_symbols