diff options
author | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-03-27 09:11:48 +0100 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-03-31 09:20:51 +0200 |
commit | bcbd60aeb5fe20136fe79270ac1b8f3936883d78 (patch) | |
tree | 1f3f8459934890363fa1fddd32b418599a0318b6 /clang/unittests/Tooling/Syntax/TreeTest.cpp | |
parent | d2d6c9f59197bd82ec5bc9c003840f244a70a347 (diff) | |
download | llvm-bcbd60aeb5fe20136fe79270ac1b8f3936883d78.zip llvm-bcbd60aeb5fe20136fe79270ac1b8f3936883d78.tar.gz llvm-bcbd60aeb5fe20136fe79270ac1b8f3936883d78.tar.bz2 |
[Mips] Make MipsBranchExpansion aware of BBIT family of branch
Octeon branches (bbit0/bbit032/bbit1/bbit132) have an immediate operand,
so it is legal to have such replacement within
MipsBranchExpansion::replaceBranch().
According to the specification, a branch (e.g. bbit0 ) looks like:
bbit0 rs p offset // p is an immediate operand
if !rs<p> then branch
Without this patch, an assertion triggers in the method,
and the problem has been found in the real example.
Differential Revision: https://reviews.llvm.org/D76842
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
0 files changed, 0 insertions, 0 deletions