brintos

brintos / llvm-project-archived public Read only

0
0
Text · 753 B · a76684d Raw
31 lines · plain
1@ RUN: llvm-mc -triple thumbv7-apple-ios %s -filetype=obj -o %t2@ RUN: llvm-objdump --macho -d %t --triple=thumbv7-apple-ios | FileCheck %s3 4@ ARM relocatable object files try to look like they're pre-linked, so the5@ offsets in the instructions are a best-guess. I suspect the "-3" should b6 7@ CHECK: movw r1, :lower16:(_bar-8-3)8@ [...]9@ CHECK: .long {{[0-9]*[13579]}}10 11        .thumb12        .thumb_func _foo13_foo:14        movw r1, :lower16:(_bar-(LPC2_0+4))15        movt r1, :upper16:(_bar-(LPC2_0+4))16LPC2_0:17        add r1, pc18        ldr r0, Lconstpool19        bx lr20Lconstpool:21        .data_region22        .word _bar23        .end_data_region24 25        .thumb_func _bar26        .global _bar27_bar:28        bx lr29 30        .subsections_via_symbols31