mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
CodeGen: it turns out that NAND is not the same thing as BIC. At all.
We've been performing the wrong operation on ARM for "atomicrmw nand" for years, since "a NAND b" is "~(a & b)" rather than ARM's very tempting "a & ~b". This bled over into the generic expansion pass. So I assume no-one has ever actually tried to do an atomic nand in the real world. Oh well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2402,7 +2402,7 @@ bool X86FastISel::X86VisitIntrinsicCall(const IntrinsicInst &I) {
|
||||
case Intrinsic::usub_with_overflow:
|
||||
BaseOpc = ISD::SUB; CondOpc = X86::SETBr; break;
|
||||
case Intrinsic::smul_with_overflow:
|
||||
BaseOpc = ISD::MUL; CondOpc = X86::SETOr; break;
|
||||
BaseOpc = X86ISD::SMUL; CondOpc = X86::SETOr; break;
|
||||
case Intrinsic::umul_with_overflow:
|
||||
BaseOpc = X86ISD::UMUL; CondOpc = X86::SETOr; break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user