projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PowerPC] Support @toc@h modifier
[oota-llvm.git]
/
test
/
MC
/
PowerPC
/
ppc64-fixups.s
diff --git
a/test/MC/PowerPC/ppc64-fixups.s
b/test/MC/PowerPC/ppc64-fixups.s
index bb6c7be8d1d627b216ce89c7e6e8e9878c1baa14..9accde047c66377b78d0d22761c88ae59e22efb9 100644
(file)
--- a/
test/MC/PowerPC/ppc64-fixups.s
+++ b/
test/MC/PowerPC/ppc64-fixups.s
@@
-82,6
+82,11
@@
# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0
addi 4, 3, target@toc@l
# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0
addi 4, 3, target@toc@l
+# CHECK: addis 3, 2, target@toc@h # encoding: [0x3c,0x62,A,A]
+# CHECK-NEXT: # fixup A - offset: 2, value: target@toc@h, kind: fixup_ppc_half16
+# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_HI target 0x0
+ addis 3, 2, target@toc@h
+
# CHECK: lwz 1, target@toc@l(3) # encoding: [0x80,0x23,A,A]
# CHECK-NEXT: # fixup A - offset: 2, value: target@toc@l, kind: fixup_ppc_half16
# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0
# CHECK: lwz 1, target@toc@l(3) # encoding: [0x80,0x23,A,A]
# CHECK-NEXT: # fixup A - offset: 2, value: target@toc@l, kind: fixup_ppc_half16
# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0