diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-01-19 01:36:59 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-01-19 01:36:59 +0000 |
commit | 904b7be27ef12bf3c31a37e97710bd167fe37fda (patch) | |
tree | 11255a76e1bf9a2b3f087e3619b0726f995ddd6d /test/MC/MachO | |
parent | c2220057c0c464613a0b0fec36c0a582c7c94e2d (diff) | |
download | external_llvm-904b7be27ef12bf3c31a37e97710bd167fe37fda.zip external_llvm-904b7be27ef12bf3c31a37e97710bd167fe37fda.tar.gz external_llvm-904b7be27ef12bf3c31a37e97710bd167fe37fda.tar.bz2 |
Add testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r-- | test/MC/MachO/ARM/thumb2-function-relative-load.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/MachO/ARM/thumb2-function-relative-load.s b/test/MC/MachO/ARM/thumb2-function-relative-load.s new file mode 100644 index 0000000..622007d --- /dev/null +++ b/test/MC/MachO/ARM/thumb2-function-relative-load.s @@ -0,0 +1,13 @@ +@ 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 lr, (_foo - 4) + + .subsections_via_symbols + +@ CHECK: ('_section_data', '5ff808e0') |