[llvm] r205093 - ARM64: use 64-bit constant even on 32-bit machines

Tim Northover tnorthover at apple.com
Sat Mar 29 04:51:50 PDT 2014


Author: tnorthover
Date: Sat Mar 29 06:51:49 2014
New Revision: 205093

URL: http://llvm.org/viewvc/llvm-project?rev=205093&view=rev
Log:
ARM64: use 64-bit constant even on 32-bit machines

Another existing bot failure so no tests.

Modified:
    llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp?rev=205093&r1=205092&r2=205093&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp Sat Mar 29 06:51:49 2014
@@ -5158,7 +5158,7 @@ SDValue ARM64TargetLowering::LowerBUILD_
       // and NEG) are passed through unmodified.  This allows codegen patterns
       // for these operations to match.  Special-purpose patterns will lower
       // these immediates to MOVIs if it proves necessary.
-      if (VT.isInteger() && (CnstVal == 0 || CnstVal == ~0UL))
+      if (VT.isInteger() && (CnstVal == 0 || CnstVal == ~0ULL))
         return Op;
 
       // The many faces of MOVI...





More information about the llvm-commits mailing list