From b1cd84641fd56aeb204a045f80be0cecceb02b37 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 25 Feb 2023 00:53:20 +0800 Subject: add fma --- xmake/modules/core/tools/cl.lua | 1 + xmake/modules/core/tools/gcc.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'xmake/modules/core/tools') diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index cc19978b9..2a0bc556c 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -184,6 +184,7 @@ function nf_vectorext(self, extension) , sse2 = "-arch:SSE2" , avx = "-arch:AVX" , avx2 = "-arch:AVX2" + , fma = "-arch:AVX2" } local flag = maps[extension] if flag and self:has_flags(flag, "cxflags") then diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index b8a05832c..84a1d187f 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -166,6 +166,7 @@ function nf_vectorext(self, extension) , ssse3 = "-mssse3" , avx = "-mavx" , avx2 = "-mavx2" + , fma = "-mfma" , neon = "-mfpu=neon" } return maps[extension] -- cgit v1.3.1