mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Don't generate carry bit when loading immediate values on the Microblaze.
llvm-svn: 122385
This commit is contained in:
parent
0d64db9772
commit
2759b7bc98
@ -80,7 +80,7 @@ copyPhysReg(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator I, DebugLoc DL,
|
||||
unsigned DestReg, unsigned SrcReg,
|
||||
bool KillSrc) const {
|
||||
llvm::BuildMI(MBB, I, DL, get(MBlaze::ADD), DestReg)
|
||||
llvm::BuildMI(MBB, I, DL, get(MBlaze::ADDK), DestReg)
|
||||
.addReg(SrcReg, getKillRegState(KillSrc)).addReg(MBlaze::R0);
|
||||
}
|
||||
|
||||
|
@ -714,7 +714,7 @@ let usesCustomInserter=1 in {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Small immediates
|
||||
def : Pat<(i32 0), (ADD (i32 R0), (i32 R0))>;
|
||||
def : Pat<(i32 0), (ADDK (i32 R0), (i32 R0))>;
|
||||
def : Pat<(i32 immSExt16:$imm), (ADDIK (i32 R0), imm:$imm)>;
|
||||
def : Pat<(i32 immZExt16:$imm), (ORI (i32 R0), imm:$imm)>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user