@@ -305,15 +305,13 @@ TEST(KnownBitsTest, BinaryExhaustive) {
305
305
[](const KnownBits &Known1, const KnownBits &Known2) {
306
306
return KnownBits::add (Known1, Known2);
307
307
},
308
- [](const APInt &N1, const APInt &N2) { return N1 + N2; },
309
- /* CheckOptimality=*/ false );
308
+ [](const APInt &N1, const APInt &N2) { return N1 + N2; });
310
309
testBinaryOpExhaustive (
311
310
" sub" ,
312
311
[](const KnownBits &Known1, const KnownBits &Known2) {
313
312
return KnownBits::sub (Known1, Known2);
314
313
},
315
- [](const APInt &N1, const APInt &N2) { return N1 - N2; },
316
- /* CheckOptimality=*/ false );
314
+ [](const APInt &N1, const APInt &N2) { return N1 - N2; });
317
315
testBinaryOpExhaustive (" umax" , KnownBits::umax, APIntOps::umax);
318
316
testBinaryOpExhaustive (" umin" , KnownBits::umin, APIntOps::umin);
319
317
testBinaryOpExhaustive (" smax" , KnownBits::smax, APIntOps::smax);
@@ -524,16 +522,15 @@ TEST(KnownBitsTest, BinaryExhaustive) {
524
522
/* CheckOptimality=*/ false );
525
523
526
524
testBinaryOpExhaustive (" avgFloorS" , KnownBits::avgFloorS, APIntOps::avgFloorS,
527
- false );
525
+ /* CheckOptimality= */ false );
528
526
529
- testBinaryOpExhaustive (" avgFloorU" , KnownBits::avgFloorU, APIntOps::avgFloorU,
530
- false );
527
+ testBinaryOpExhaustive (" avgFloorU" , KnownBits::avgFloorU,
528
+ APIntOps::avgFloorU );
531
529
532
- testBinaryOpExhaustive (" avgCeilU" , KnownBits::avgCeilU, APIntOps::avgCeilU,
533
- false );
530
+ testBinaryOpExhaustive (" avgCeilU" , KnownBits::avgCeilU, APIntOps::avgCeilU);
534
531
535
532
testBinaryOpExhaustive (" avgCeilS" , KnownBits::avgCeilS, APIntOps::avgCeilS,
536
- false );
533
+ /* CheckOptimality= */ false );
537
534
}
538
535
539
536
TEST (KnownBitsTest, UnaryExhaustive) {
0 commit comments