forked from OSchip/llvm-project
[RISCV] Support negative constants in CompressInstEmitter
Summary: Some compressed instructions match against negative values; store immediates as a signed value such that these patterns will now match the intended instructions. Reviewers: asb, lenary, PaoloS Reviewed By: asb Subscribers: rbar, johnrusso, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, evandro, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76767
This commit is contained in:
parent
5fad05e80d
commit
1e30396223
|
@ -85,7 +85,7 @@ class RISCVCompressInstEmitter {
|
|||
MapKind Kind;
|
||||
union {
|
||||
unsigned Operand; // Operand number mapped to.
|
||||
uint64_t Imm; // Integer immediate value.
|
||||
int64_t Imm; // Integer immediate value.
|
||||
Record *Reg; // Physical register.
|
||||
} Data;
|
||||
int TiedOpIdx = -1; // Tied operand index within the instruction.
|
||||
|
|
Loading…
Reference in New Issue