[PATCH] D141074: [X86] Avoid converting 64-bit integers to floating point using x87 on Windows

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 16:13:27 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:21371
 
+  // On Windows, the default precision control on x87 is only 56-bit.
+  if (SrcVT == MVT::i64 && UseSSEReg && Subtarget.isOSWindows())
----------------
Where did 56 come from? The precision control settings are 24, 53, and 64.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141074/new/

https://reviews.llvm.org/D141074



More information about the llvm-commits mailing list