summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/mips4
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-01-11 15:57:46 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-01-11 15:57:46 +0000
commit4d32300cfde99082af946820bbd2ee72aa06e634 (patch)
tree833dd83116130a9002b4447c7663fb6b968e18db /llvm/test/MC/Mips/mips4
parentbc17b68a47789879495f603f54e569e1fe7c8d1a (diff)
downloadbcm5719-llvm-4d32300cfde99082af946820bbd2ee72aa06e634.tar.gz
bcm5719-llvm-4d32300cfde99082af946820bbd2ee72aa06e634.zip
[mips] Never select JAL for calls to an absolute immediate address.
Summary: It actually takes an offset into the current PC-region. This fixes the 'expr' command in lldb. Reviewers: vkalintiris, jaydeep, bhushan Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D16054 llvm-svn: 257339
Diffstat (limited to 'llvm/test/MC/Mips/mips4')
-rw-r--r--llvm/test/MC/Mips/mips4/valid.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips4/valid.s b/llvm/test/MC/Mips/mips4/valid.s
index 9bf98d1c29f..fcea8ead8a7 100644
--- a/llvm/test/MC/Mips/mips4/valid.s
+++ b/llvm/test/MC/Mips/mips4/valid.s
@@ -121,6 +121,7 @@ a:
j a # CHECK: j a # encoding: [0b000010AA,A,A,A]
# CHECK: # fixup A - offset: 0, value: a, kind: fixup_Mips_26
j 1328 # CHECK: j 1328 # encoding: [0x08,0x00,0x01,0x4c]
+ jal 21100 # CHECK: jal 21100 # encoding: [0x0c,0x00,0x14,0x9b]
lb $24,-14515($10)
lbu $8,30195($v1)
ld $sp,-28645($s1)
OpenPOWER on IntegriCloud