mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Fixed a bug in which signed comparisons were being used instead of unsigned comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12513889fd
commit
703e235f0c
@ -300,9 +300,11 @@ namespace PIC16CC {
|
||||
case PIC16CC::LT: return "lt";
|
||||
case PIC16CC::ULT: return "lt";
|
||||
case PIC16CC::LE: return "le";
|
||||
case PIC16CC::ULE: return "le";
|
||||
case PIC16CC::GT: return "gt";
|
||||
case PIC16CC::UGT: return "gt";
|
||||
case PIC16CC::GE: return "ge";
|
||||
case PIC16CC::UGE: return "ge";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1557,8 +1557,8 @@ static PIC16CC::CondCodes IntCCToPIC16CC(ISD::CondCode CC) {
|
||||
case ISD::SETLT: return PIC16CC::LT;
|
||||
case ISD::SETLE: return PIC16CC::LE;
|
||||
case ISD::SETULT: return PIC16CC::ULT;
|
||||
case ISD::SETULE: return PIC16CC::LE;
|
||||
case ISD::SETUGE: return PIC16CC::GE;
|
||||
case ISD::SETULE: return PIC16CC::ULE;
|
||||
case ISD::SETUGE: return PIC16CC::UGE;
|
||||
case ISD::SETUGT: return PIC16CC::UGT;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user