mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Succumb utterly to compatibility and implement
__sync_fetch_and_nand as ANDC, even though that's not what nand means. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d9c553f262
commit
209a4099f9
@ -4151,13 +4151,13 @@ PPCTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
|
||||
BB = EmitAtomicBinary(MI, BB, true, PPC::XOR8);
|
||||
|
||||
else if (MI->getOpcode() == PPC::ATOMIC_LOAD_NAND_I8)
|
||||
BB = EmitPartwordAtomicBinary(MI, BB, true, PPC::NAND);
|
||||
BB = EmitPartwordAtomicBinary(MI, BB, true, PPC::ANDC);
|
||||
else if (MI->getOpcode() == PPC::ATOMIC_LOAD_NAND_I16)
|
||||
BB = EmitPartwordAtomicBinary(MI, BB, false, PPC::NAND);
|
||||
BB = EmitPartwordAtomicBinary(MI, BB, false, PPC::ANDC);
|
||||
else if (MI->getOpcode() == PPC::ATOMIC_LOAD_NAND_I32)
|
||||
BB = EmitAtomicBinary(MI, BB, false, PPC::NAND);
|
||||
BB = EmitAtomicBinary(MI, BB, false, PPC::ANDC);
|
||||
else if (MI->getOpcode() == PPC::ATOMIC_LOAD_NAND_I64)
|
||||
BB = EmitAtomicBinary(MI, BB, true, PPC::NAND8);
|
||||
BB = EmitAtomicBinary(MI, BB, true, PPC::ANDC8);
|
||||
|
||||
else if (MI->getOpcode() == PPC::ATOMIC_LOAD_SUB_I8)
|
||||
BB = EmitPartwordAtomicBinary(MI, BB, true, PPC::SUBF);
|
||||
|
Loading…
Reference in New Issue
Block a user