[mips] For PIC code convert unconditional jump to unconditional branch
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 12 Dec 2016 17:40:26 +0000 (17:40 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 12 Dec 2016 17:40:26 +0000 (17:40 +0000)
commit5048514c208a2180933b090251c36d78c9ae119d
treeb41e61452df46bfb720b175909c79fb9d4d36343
parentf45ea4bbc587a171b0643428de1c2693259cb072
[mips] For PIC code convert unconditional jump to unconditional branch

Unconditional branch uses relative addressing which is the right choice
in case of position independent code.

This is a fix for the bug:
https://dmz-portal.mips.com/bugz/show_bug.cgi?id=2445

Differential revision: https://reviews.llvm.org/D27483

llvm-svn: 289448
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/test/MC/Mips/expansion-j-sym-pic.s [new file with mode: 0644]
llvm/test/MC/Mips/expansion-jal-sym-pic.s