Fix PR15630: Replace faulty stdcx. with stwcx.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 2 Apr 2013 18:37:08 +0000 (18:37 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 2 Apr 2013 18:37:08 +0000 (18:37 +0000)
commitdebf7d345aa297ebedf2d3b1db234feb44c71483
tree7bd30cb38b9d63a8a18299c764a5735aad53cba0
parent423d6744123e4886f9f79f6273fa345b9cce51a8
Fix PR15630:  Replace faulty stdcx. with stwcx.

When doing a partword atomic operation, a lwarx was being paired with
a stdcx. instead of a stwcx. when compiling for a 64-bit target.  The
target has nothing to do with it in this case; we always need a stwcx.

Thanks to Kai Nacke for reporting the problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178559 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/pr15630.ll [new file with mode: 0644]