diff options
author | Dale Johannesen <dalej@apple.com> | 2008-09-11 02:15:03 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-09-11 02:15:03 +0000 |
commit | 209a4099f96f0dfd340fab4ffaf2c2d8fc15aad6 (patch) | |
tree | ac7ca6ba49f25cf3ac3886e7a0afacad8e6eb1e6 /lib | |
parent | d9c553f2622f751f9c474aa348e2f8b595d7d9ca (diff) | |
download | llvm-209a4099f96f0dfd340fab4ffaf2c2d8fc15aad6.tar.gz llvm-209a4099f96f0dfd340fab4ffaf2c2d8fc15aad6.tar.bz2 llvm-209a4099f96f0dfd340fab4ffaf2c2d8fc15aad6.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index e508b0b804..7fccaba17c 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -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); |