forked from OSchip/llvm-project
Fixed a bug in which signed comparisons were being used instead of unsigned comparisons.
llvm-svn: 72771
This commit is contained in:
parent
aef810900a
commit
a53241a880
|
|
@ -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