Succumb utterly to compatibility and implement
authorDale Johannesen <dalej@apple.com>
Thu, 11 Sep 2008 02:15:03 +0000 (02:15 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 11 Sep 2008 02:15:03 +0000 (02:15 +0000)
__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

lib/Target/PowerPC/PPCISelLowering.cpp

index e508b0b8045b33622a3a3352535861ed0ea49960..7fccaba17cdbc2dbde74c2879cd1b40a0ff33592 100644 (file)
@@ -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);