From da385c897b2e6a9addf066f79fac423e70ff201c Mon Sep 17 00:00:00 2001 From: Manu Evans Date: Sat, 25 Jul 2015 15:11:57 +1000 Subject: [PATCH] Added some missing SSE versions that I've wanted a few times. --- src/_premake_init.lua | 3 +++ src/actions/vstudio/vs2010_vcxproj.lua | 2 +- src/tools/gcc.lua | 3 +++ src/tools/msc.lua | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/_premake_init.lua b/src/_premake_init.lua index 04955949..8de34233 100644 --- a/src/_premake_init.lua +++ b/src/_premake_init.lua @@ -1022,6 +1022,9 @@ "AVX2", "SSE", "SSE2", + "SSE3", + "SSSE3", + "SSE4.1", } } diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index f7191216..a18bfd73 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -1110,7 +1110,7 @@ elseif x == "AVX2" and _ACTION > "vs2012" then v = "AdvancedVectorExtensions2" elseif cfg.architecture ~= "x86_64" then - if x == "SSE2" then + if x == "SSE2" or x == "SSE3" or x == "SSSE3" or x == "SSE4.1" then v = "StreamingSIMDExtensions2" elseif x == "SSE" then v = "StreamingSIMDExtensions" diff --git a/src/tools/gcc.lua b/src/tools/gcc.lua index 2bcb306c..0eecbe6e 100644 --- a/src/tools/gcc.lua +++ b/src/tools/gcc.lua @@ -74,6 +74,9 @@ AVX2 = "-mavx2", SSE = "-msse", SSE2 = "-msse2", + SSE3 = "-msse3", + SSSE3 = "-mssse3", + ["SSE4.1"] = "-msse4.1", }, warnings = { Extra = "-Wall -Wextra", diff --git a/src/tools/msc.lua b/src/tools/msc.lua index 20270661..73f59adf 100644 --- a/src/tools/msc.lua +++ b/src/tools/msc.lua @@ -66,6 +66,9 @@ AVX2 = "/arch:AVX2", SSE = "/arch:SSE", SSE2 = "/arch:SSE2", + SSE3 = "/arch:SSE2", + SSSE3 = "/arch:SSE2", + ["SSE4.1"] = "/arch:SSE2", }, warnings = { Extra = "/W4",