I think the pattern introduced in https://reviews.llvm.org/D128669 is matching -0.0. See compiler explorer example: https://godbolt.org/z/zj4f1Mcon