Skip to content

Commit

Permalink
Disable FMA on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Nov 18, 2021
1 parent 3b2685c commit 854eaa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/llvm-cpufeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ Optional<bool> always_have_fma(Function &intr) {
auto intr_name = intr.getName();
auto typ = intr_name.substr(strlen("julia.cpu.have_fma."));

#ifdef _CPU_AARCH64_
#if defined(_OS_WINDOWS_)
// FMA on Windows is weirdly broken (#43088)
return false;
#elif defined(_CPU_AARCH64_)
return typ == "f32" || typ == "f64";
#else
(void)typ;
Expand Down

0 comments on commit 854eaa8

Please sign in to comment.