summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Disassembler/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/Disassembler/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/Disassembler/Mips/mips4')
-rw-r--r--llvm/test/MC/Disassembler/Mips/mips4/valid-mips4.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/Mips/mips4/valid-mips4.txt b/llvm/test/MC/Disassembler/Mips/mips4/valid-mips4.txt
index 5e8253dfef2..47ab90809ec 100644
--- a/llvm/test/MC/Disassembler/Mips/mips4/valid-mips4.txt
+++ b/llvm/test/MC/Disassembler/Mips/mips4/valid-mips4.txt
@@ -118,6 +118,7 @@
0x08 0x00 0x00 0x01 # CHECK: j 4
0x09 0x33 0x00 0x2a # CHECK: j 80478376
0x0b 0x2a 0xd1 0x44 # CHECK: j 212550928
+0x0c 0x00 0x01 0x4c # CHECK: jal 1328
0x21 0x08 0xff 0xfe # CHECK: addi $8, $8, -2
0x21 0x2d 0x66 0xd2 # CHECK: addi $13, $9, 26322
0x21 0xad 0xe6 0x90 # CHECK: addi $13, $13, -6512
OpenPOWER on IntegriCloud