Fix X86 codegen for 'atomicrmw nand' to generate *x = ~(*x & y), not *x = ~*x & y.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 13 Apr 2012 22:47:00 +0000 (22:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 13 Apr 2012 22:47:00 +0000 (22:47 +0000)
commit42fc29e7176ff51d649eccf82c836510fde4438f
treee2d75b68bf9dd9baa14352328a6b62506d4ae596
parent3423132f2e48ba34fa76df0d8ab8990c85b5e677
Fix X86 codegen for 'atomicrmw nand' to generate *x = ~(*x & y), not *x = ~*x & y.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/atomic_op.ll