[llvm] [X86] Don't rely on global -fp-contract=fast on X86 CodeGen tests (PR #158026)
Evgenii Kudriashov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 11 10:16:17 PDT 2025
================
@@ -1876,14 +1876,14 @@ define float @fadd_fma_fmul_2(float %a, float %b, float %c, float %d, float %n0)
; AVX512-NEXT: vfmadd231ss {{.*#+}} xmm2 = (xmm1 * xmm0) + xmm2
; AVX512-NEXT: vaddss %xmm2, %xmm4, %xmm0
; AVX512-NEXT: retq
- %m1 = fmul float %a, %b
- %m2 = fmul float %c, %d
- %a1 = fadd contract float %m1, %m2
- %a2 = fadd contract float %n0, %a1
+ %m1 = fmul contract float %a, %b
+ %m2 = fmul contract float %c, %d
+ %a1 = fadd contract contract float %m1, %m2
+ %a2 = fadd contract contract float %n0, %a1
ret float %a2
}
-; The final fadd can be folded with either 1 of the leading fmuls.
+; The final fadd contract can be folded with either 1 of the leading fmul contracts.
----------------
e-kud wrote:
Looks like an unnecessary change.
https://github.com/llvm/llvm-project/pull/158026
More information about the llvm-commits
mailing list