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

Declarations

include/llvm/ADT/APInt.h
 1110   APInt ssub_sat(const APInt &RHS) const;

References

lib/Analysis/ConstantFolding.cpp
 2202         return ConstantInt::get(Ty, C0->ssub_sat(*C1));
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 4714   case ISD::SSUBSAT: return std::make_pair(C1.ssub_sat(C2), true);
lib/IR/ConstantRange.cpp
 1323   APInt NewL = getSignedMin().ssub_sat(Other.getSignedMax());
 1324   APInt NewU = getSignedMax().ssub_sat(Other.getSignedMin()) + 1;
unittests/ADT/APIntTest.cpp
 1196   EXPECT_EQ(APInt(8, -90), AP_10.ssub_sat(AP_100));
 1197   EXPECT_EQ(APInt(8, 127), AP_100.ssub_sat(-AP_100));
 1198   EXPECT_EQ(APInt(8, -128), (-AP_100).ssub_sat(AP_100));
 1199   EXPECT_EQ(APInt(8, -128), APInt(8, -128).ssub_sat(APInt(8, 127)));
unittests/IR/ConstantRangeTest.cpp
 2195         return N1.ssub_sat(N2);