view test/MC/MachO/ARM/relax-thumb-ldr-literal.s @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children afa8332a0e37
line wrap: on
line source

@ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj
@ RUN: macho-dump --dump-section-data < %t.obj > %t.dump
@ RUN: FileCheck < %t.dump %s

	.syntax unified
        .text
	.thumb
	.thumb_func _foo
_foo:
        ldr r2, (_foo - 4)

@ CHECK: ('num_reloc', 0)
@ CHECK: ('_section_data', '5ff80820')