[X86] Change precision control to FP80 during u64->fp32 conversion on Windows.
authorCraig Topper <craig.topper@sifive.com>
Mon, 6 Feb 2023 15:29:31 +0000 (07:29 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 6 Feb 2023 15:35:04 +0000 (07:35 -0800)
commit11fb09ec0afa8620bba44f374763e2ad64332e2e
treed82865949a5ff07176b6e2eeeb6f88d6cb992a14
parent402981ee25fe135d63226a7de17dbb14c437c71b
[X86] Change precision control to FP80 during u64->fp32 conversion on Windows.

This is an alternative to D141074 to fix the problem by adjusting
the precision control dynamically.

Reviewed By: icedrocket

Differential Revision: https://reviews.llvm.org/D142178
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h
llvm/lib/Target/X86/X86InstrFPStack.td
llvm/test/CodeGen/X86/uint64-to-float.ll