mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Don't generate carry bit when loading immediate values on the Microblaze.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122385 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b3bbb149f
commit
9eb337a2b7
@ -80,7 +80,7 @@ copyPhysReg(MachineBasicBlock &MBB,
|
|||||||
MachineBasicBlock::iterator I, DebugLoc DL,
|
MachineBasicBlock::iterator I, DebugLoc DL,
|
||||||
unsigned DestReg, unsigned SrcReg,
|
unsigned DestReg, unsigned SrcReg,
|
||||||
bool KillSrc) const {
|
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);
|
.addReg(SrcReg, getKillRegState(KillSrc)).addReg(MBlaze::R0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -714,7 +714,7 @@ let usesCustomInserter=1 in {
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
// Small immediates
|
// 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 immSExt16:$imm), (ADDIK (i32 R0), imm:$imm)>;
|
||||||
def : Pat<(i32 immZExt16:$imm), (ORI (i32 R0), imm:$imm)>;
|
def : Pat<(i32 immZExt16:$imm), (ORI (i32 R0), imm:$imm)>;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user