reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/ConstantRange.h
  394   ConstantRange srem(const ConstantRange &Other) const;

References

lib/IR/ConstantRange.cpp
  794     return srem(Other);
unittests/IR/ConstantRangeTest.cpp
 1172   EXPECT_EQ(Full.srem(Empty), Empty);
 1173   EXPECT_EQ(Empty.srem(Full), Empty);
 1175   EXPECT_EQ(Full.srem(ConstantRange(APInt(16, 0))), Empty);
 1177   EXPECT_EQ(Full.srem(Full), ConstantRange(APInt::getSignedMinValue(16) + 1,
 1189   EXPECT_EQ(PosLargeLHS.srem(PosMod), Expected);
 1190   EXPECT_EQ(PosLargeLHS.srem(NegMod), Expected);
 1193   EXPECT_EQ(NegLargeLHS.srem(PosMod), Expected);
 1194   EXPECT_EQ(NegLargeLHS.srem(NegMod), Expected);
 1197   EXPECT_EQ(PosNegLargeLHS.srem(PosMod), Expected);
 1198   EXPECT_EQ(PosNegLargeLHS.srem(NegMod), Expected);
 1202   EXPECT_EQ(PosLHS.srem(PosMod), PosLHS);
 1203   EXPECT_EQ(PosLHS.srem(NegMod), PosLHS);
 1204   EXPECT_EQ(PosLHS.srem(IntMinMod), PosLHS);
 1206   EXPECT_EQ(NegLHS.srem(PosMod), NegLHS);
 1207   EXPECT_EQ(NegLHS.srem(NegMod), NegLHS);
 1208   EXPECT_EQ(NegLHS.srem(IntMinMod), NegLHS);
 1210   EXPECT_EQ(PosNegLHS.srem(PosMod), PosNegLHS);
 1211   EXPECT_EQ(PosNegLHS.srem(NegMod), PosNegLHS);
 1212   EXPECT_EQ(PosNegLHS.srem(IntMinMod), PosNegLHS);
 1216   EXPECT_EQ(PosSmallLHS.srem(PosMod), PosSmallLHS);
 1217   EXPECT_EQ(PosSmallLHS.srem(NegMod), PosSmallLHS);
 1218   EXPECT_EQ(PosSmallLHS.srem(IntMinMod), PosSmallLHS);
 1220   EXPECT_EQ(NegSmallLHS.srem(PosMod), NegSmallLHS);
 1221   EXPECT_EQ(NegSmallLHS.srem(NegMod), NegSmallLHS);
 1222   EXPECT_EQ(NegSmallLHS.srem(IntMinMod), NegSmallLHS);
 1224   EXPECT_EQ(PosNegSmallLHS.srem(PosMod), PosNegSmallLHS);
 1225   EXPECT_EQ(PosNegSmallLHS.srem(NegMod), PosNegSmallLHS);
 1226   EXPECT_EQ(PosNegSmallLHS.srem(IntMinMod), PosNegSmallLHS);
 1231                 .srem(ConstantRange(APInt(16, 10))),
 1236         return CR1.srem(CR2);