diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2019-07-12 04:58:45 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2019-07-12 04:58:45 +0000 |
commit | ee5af50eb0c3b40bed784ba3f8bde1b06c0f6804 (patch) | |
tree | 6f707085bd0b8dd64effb0e83a6155fe06774886 /clang/unittests/Tooling/RefactoringTest.cpp | |
parent | 27ed1c5bb80c8da317cd80bdd50cb22189d1c6fb (diff) | |
download | llvm-ee5af50eb0c3b40bed784ba3f8bde1b06c0f6804.zip llvm-ee5af50eb0c3b40bed784ba3f8bde1b06c0f6804.tar.gz llvm-ee5af50eb0c3b40bed784ba3f8bde1b06c0f6804.tar.bz2 |
[mips] Fix JmpLink to texternalsym and tglobaladdr on mcroMIPS R6
There is not match for the `MipsJmpLink texternalsym` and `MipsJmpLink
tglobaladdr` patterns for microMIPS R6. As a result LLVM incorrectly
selects the `JALRC16` compact 2-byte instruction which takes a target
instruction address from a register only and assign `R_MIPS_32` relocation
for this instruction. This relocation completely overwrites `JALRC16`
and nearby instructions.
This patch adds missed matching patterns, selects `BALC` instruction and
assign a correct `R_MICROMIPS_PC26_S1` relocation.
Differential Revision: https://reviews.llvm.org/D64552
llvm-svn: 365870
Diffstat (limited to 'clang/unittests/Tooling/RefactoringTest.cpp')
0 files changed, 0 insertions, 0 deletions