reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1183 EXPECT_EQ(APInt(8, 200), AP_100.uadd_sat(AP_100)); 1183 EXPECT_EQ(APInt(8, 200), AP_100.uadd_sat(AP_100)); 1184 EXPECT_EQ(APInt(8, 255), AP_100.uadd_sat(AP_200)); 1187 EXPECT_EQ(APInt(8, 110), AP_10.sadd_sat(AP_100)); 1188 EXPECT_EQ(APInt(8, 127), AP_100.sadd_sat(AP_100)); 1188 EXPECT_EQ(APInt(8, 127), AP_100.sadd_sat(AP_100)); 1189 EXPECT_EQ(APInt(8, -128), (-AP_100).sadd_sat(-AP_100)); 1189 EXPECT_EQ(APInt(8, -128), (-AP_100).sadd_sat(-AP_100)); 1192 EXPECT_EQ(APInt(8, 90), AP_100.usub_sat(AP_10)); 1193 EXPECT_EQ(APInt(8, 0), AP_100.usub_sat(AP_200)); 1196 EXPECT_EQ(APInt(8, -90), AP_10.ssub_sat(AP_100)); 1197 EXPECT_EQ(APInt(8, 127), AP_100.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)); 1198 EXPECT_EQ(APInt(8, -128), (-AP_100).ssub_sat(AP_100));