diff --git a/llvm/test/Transforms/InstCombine/fabs.ll b/llvm/test/Transforms/InstCombine/fabs.ll index 2d6834ea502e7..a26cc046673d8 100644 --- a/llvm/test/Transforms/InstCombine/fabs.ll +++ b/llvm/test/Transforms/InstCombine/fabs.ll @@ -249,8 +249,7 @@ define double @multi_use_fabs_fpext(float %x) { ret double %fabs } -; Negative test for the fabs folds below: we require nnan, so -; we won't always clear the sign bit of a NaN value. +; X <= 0.0 ? (0.0 - X) : X --> fabs(X) define double @select_fcmp_ole_zero(double %x) { ; CHECK-LABEL: @select_fcmp_ole_zero( @@ -263,8 +262,6 @@ define double @select_fcmp_ole_zero(double %x) { ret double %fabs } -; X <= 0.0 ? (0.0 - X) : X --> fabs(X) - define double @select_fcmp_nnan_ole_zero(double %x) { ; CHECK-LABEL: @select_fcmp_nnan_ole_zero( ; CHECK-NEXT: [[TMP1:%.*]] = call double @llvm.fabs.f64(double [[X:%.*]])