mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Don't add implicit regs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2505985ce
commit
a4978ccbcb
@ -502,7 +502,7 @@ void ISel::visitDivRem(BinaryOperator &I) {
|
||||
|
||||
if (isSigned) {
|
||||
// Emit a sign extension instruction...
|
||||
BuildMI(BB, ExtOpcode[Class], 1, ExtReg).addReg(Reg);
|
||||
BuildMI(BB, ExtOpcode[Class], 0);
|
||||
} else {
|
||||
// If unsigned, emit a zeroing instruction... (reg = xor reg, reg)
|
||||
BuildMI(BB, ClrOpcode[Class], 2, ExtReg).addReg(ExtReg).addReg(ExtReg);
|
||||
|
@ -502,7 +502,7 @@ void ISel::visitDivRem(BinaryOperator &I) {
|
||||
|
||||
if (isSigned) {
|
||||
// Emit a sign extension instruction...
|
||||
BuildMI(BB, ExtOpcode[Class], 1, ExtReg).addReg(Reg);
|
||||
BuildMI(BB, ExtOpcode[Class], 0);
|
||||
} else {
|
||||
// If unsigned, emit a zeroing instruction... (reg = xor reg, reg)
|
||||
BuildMI(BB, ClrOpcode[Class], 2, ExtReg).addReg(ExtReg).addReg(ExtReg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user