summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/MachO/ARM/thumb2-function-relative-load.s
blob: 1a91675fae5803cc9bb874ef7ec64b801bf427b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj
@ RUN: llvm-readobj -s -sd < %t.obj > %t.dump
@ RUN: FileCheck < %t.dump %s
        .syntax unified
        .text
	.thumb
        .thumb_func _foo
_foo:
	ldr lr, (_foo - 4)

        .subsections_via_symbols

@ CHECK:  SectionData (
@ CHECK:    0000: 5FF808E0                             |_...|
@ CHECK:  )
OpenPOWER on IntegriCloud