[Sparc][Leon] Corrected supported atomics size for processors supporting Leon CASA...
authorChris Dewhurst <chris.dewhurst@lero.ie>
Tue, 6 Sep 2016 14:41:09 +0000 (14:41 +0000)
committerChris Dewhurst <chris.dewhurst@lero.ie>
Tue, 6 Sep 2016 14:41:09 +0000 (14:41 +0000)
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

index 5421aef..5e0fe67 100644 (file)
@@ -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);