OSDN Git Service

ARM64: use 64-bit constant even on 32-bit machines
authorTim Northover <tnorthover@apple.com>
Sat, 29 Mar 2014 11:51:49 +0000 (11:51 +0000)
committerTim Northover <tnorthover@apple.com>
Sat, 29 Mar 2014 11:51:49 +0000 (11:51 +0000)
Another existing bot failure so no tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205093 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM64/ARM64ISelLowering.cpp

index bfc91f9..7609608 100644 (file)
@@ -5158,7 +5158,7 @@ SDValue ARM64TargetLowering::LowerBUILD_VECTOR(SDValue Op,
       // 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...