[clang] [llvm] [X86] Fix x87 excess precision escaping into f32/f64 values (PR #215104)

Jacob Lifshay via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 15:54:22 PDT 2026


================
@@ -258,6 +270,8 @@ define <2 x i16> @uitofp_signbit_only_fail_bad_width2(i32 %i_in) nounwind {
 ; X86-NEXT:    movl %eax, {{[0-9]+}}(%esp)
 ; X86-NEXT:    movl $0, {{[0-9]+}}(%esp)
 ; X86-NEXT:    fildll {{[0-9]+}}(%esp)
+; X86-NEXT:    fstps (%esp)
+; X86-NEXT:    flds (%esp)
 ; X86-NEXT:    fstps {{[0-9]+}}(%esp)
----------------
programmerjake wrote:

a store, load, store sequence is redundant, it can just be a single store

https://github.com/llvm/llvm-project/pull/215104


More information about the cfe-commits mailing list