From 92cac9322d984a678f5803303f3a39d2d339d208 Mon Sep 17 00:00:00 2001 From: Chris Dewhurst Date: Tue, 6 Sep 2016 14:41:09 +0000 Subject: [PATCH] [Sparc][Leon] Corrected supported atomics size for processors supporting Leon CASA instruction back to 32 bits. This was erroneously checked-in for 64 bits while trying to find if there was a way to get 64 bit atomicity in Leon processors. There is not and this change should not have been checked-in. There is no unit test for this as the existing unit tests test for behaviour to 32 bits, which was the original intention of the code. llvm-svn: 280710 --- llvm/lib/Target/Sparc/SparcISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp index 5421aef..5e0fe67 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp @@ -1620,7 +1620,7 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, if (Subtarget->isV9()) setMaxAtomicSizeInBitsSupported(64); else if (Subtarget->hasLeonCasa()) - setMaxAtomicSizeInBitsSupported(64); + setMaxAtomicSizeInBitsSupported(32); else setMaxAtomicSizeInBitsSupported(0); -- 2.7.4