mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
We were (somehow) getting the wrong branch opcode for setcc float instrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
859804f529
commit
b3e0017763
@ -1176,8 +1176,8 @@ void V8ISel::visitSetCondInst(SetCondInst &I) {
|
|||||||
case Instruction::SetGE: BranchIdx = 5; break;
|
case Instruction::SetGE: BranchIdx = 5; break;
|
||||||
}
|
}
|
||||||
unsigned Column = 0;
|
unsigned Column = 0;
|
||||||
if (Ty->isSigned()) ++Column;
|
if (Ty->isSigned() && !Ty->isFloatingPoint()) Column = 1;
|
||||||
if (Ty->isFloatingPoint()) ++Column;
|
if (Ty->isFloatingPoint()) Column = 2;
|
||||||
static unsigned OpcodeTab[3*6] = {
|
static unsigned OpcodeTab[3*6] = {
|
||||||
// LLVM SparcV8
|
// LLVM SparcV8
|
||||||
// unsigned signed fp
|
// unsigned signed fp
|
||||||
|
@ -1176,8 +1176,8 @@ void V8ISel::visitSetCondInst(SetCondInst &I) {
|
|||||||
case Instruction::SetGE: BranchIdx = 5; break;
|
case Instruction::SetGE: BranchIdx = 5; break;
|
||||||
}
|
}
|
||||||
unsigned Column = 0;
|
unsigned Column = 0;
|
||||||
if (Ty->isSigned()) ++Column;
|
if (Ty->isSigned() && !Ty->isFloatingPoint()) Column = 1;
|
||||||
if (Ty->isFloatingPoint()) ++Column;
|
if (Ty->isFloatingPoint()) Column = 2;
|
||||||
static unsigned OpcodeTab[3*6] = {
|
static unsigned OpcodeTab[3*6] = {
|
||||||
// LLVM SparcV8
|
// LLVM SparcV8
|
||||||
// unsigned signed fp
|
// unsigned signed fp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user