@@ -78,7 +78,7 @@ class FRemExpander {
78
78
Value *One;
79
79
80
80
// / The sign bit for floating point values of type \p FremTy.
81
- const unsigned long Signbit;
81
+ const unsigned long long Signbit;
82
82
83
83
public:
84
84
static std::optional<FRemExpander> create (IRBuilder<> &B, Type *Ty) {
@@ -87,7 +87,7 @@ class FRemExpander {
87
87
if (Ty->isFloatTy () || Ty->isHalfTy ())
88
88
return FRemExpander{B, Ty, 12 , 0x80000000UL , Ty, B.getInt32Ty ()};
89
89
if (Ty->isDoubleTy ())
90
- return FRemExpander{B, Ty, 26 , 0x8000000000000000UL , Ty, B.getInt64Ty ()};
90
+ return FRemExpander{B, Ty, 26 , 0x8000000000000000ULL , Ty, B.getInt64Ty ()};
91
91
92
92
return std::nullopt;
93
93
}
@@ -100,8 +100,8 @@ class FRemExpander {
100
100
Value *buildFRem (Value *X, Value *Y, std::optional<SimplifyQuery> &SQ) const ;
101
101
102
102
private:
103
- FRemExpander (IRBuilder<> &B, Type *FremTy, short Bits, unsigned long Signbit,
104
- Type *ComputeFpTy, Type *IntTy)
103
+ FRemExpander (IRBuilder<> &B, Type *FremTy, short Bits,
104
+ unsigned long long Signbit, Type *ComputeFpTy, Type *IntTy)
105
105
: B(B), FremTy(FremTy), ComputeFpTy(ComputeFpTy), IntTy(IntTy),
106
106
ExTy (B.getInt32Ty()), Bits(ConstantInt::get(ExTy, Bits)),
107
107
One(ConstantInt::get(ExTy, 1 )), Signbit(Signbit) {};
0 commit comments