mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
When bit-twiddling CondCode values for integer comparisons produces
SETOEQ, is it does with (SETEQ & SETULE), map it to SETEQ. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -293,6 +293,7 @@ ISD::CondCode ISD::getSetCCAndOperation(ISD::CondCode Op1, ISD::CondCode Op2,
|
||||
switch (Result) {
|
||||
default: break;
|
||||
case ISD::SETUO : Result = ISD::SETFALSE; break; // SETUGT & SETULT
|
||||
case ISD::SETOEQ: // SETEQ & SETU[LG]E
|
||||
case ISD::SETUEQ: Result = ISD::SETEQ ; break; // SETUGE & SETULE
|
||||
case ISD::SETOLT: Result = ISD::SETULT ; break; // SETULT & SETNE
|
||||
case ISD::SETOGT: Result = ISD::SETUGT ; break; // SETUGT & SETNE
|
||||
|
||||
Reference in New Issue
Block a user