aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-06-24 20:59:01 +0000
committerJim Grosbach <grosbach@apple.com>2011-06-24 20:59:01 +0000
commit56fc6420000876460e8c89c0e7c0ae83ebb5ccf0 (patch)
tree2500132e2f487c1d256d87567f815cc0dd5e3f3b
parent0f03782d16002147608c14b34eb2a37f4881b532 (diff)
Testcase for r133818
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133823 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/MachO/thumb2-movt-fixup.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/MachO/thumb2-movt-fixup.s b/test/MC/MachO/thumb2-movt-fixup.s
new file mode 100644
index 0000000000..ddd95b5479
--- /dev/null
+++ b/test/MC/MachO/thumb2-movt-fixup.s
@@ -0,0 +1,17 @@
+@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | macho-dump | FileCheck %s
+
+_fred:
+ movt r3, :upper16:(_wilma-(LPC0_0+4))
+LPC0_0:
+
+_wilma:
+ .long 0
+
+@ CHECK: ('_relocations', [
+@ CHECK: # Relocation 0
+@ CHECK: (('word-0', 0xb9000000),
+@ CHECK: ('word-1', 0x4)),
+@ CHECK: # Relocation 1
+@ CHECK: (('word-0', 0xb100fffc),
+@ CHECK: ('word-1', 0x4)),
+