xref: /aosp_15_r20/external/llvm/test/MC/MachO/ARM/thumb2-function-relative-load.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj
2*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-readobj -s -sd < %t.obj > %t.dump
3*9880d681SAndroid Build Coastguard Worker@ RUN: FileCheck < %t.dump %s
4*9880d681SAndroid Build Coastguard Worker        .syntax unified
5*9880d681SAndroid Build Coastguard Worker        .text
6*9880d681SAndroid Build Coastguard Worker	.thumb
7*9880d681SAndroid Build Coastguard Worker        .thumb_func _foo
8*9880d681SAndroid Build Coastguard Worker_foo:
9*9880d681SAndroid Build Coastguard Worker	ldr lr, (_foo - 4)
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker        .subsections_via_symbols
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker@ CHECK:  SectionData (
14*9880d681SAndroid Build Coastguard Worker@ CHECK:    0000: 5FF808E0                             |_...|
15*9880d681SAndroid Build Coastguard Worker@ CHECK:  )
16