Merge pull request #561 from manxorist/vs201x-vector-ia32

Add vectorextensions "IA32" support for VS>=2012 on x86. (#560)
This commit is contained in:
Samuel Surtees 2016-08-08 19:50:47 +10:00 committed by GitHub
commit c4157062bc
3 changed files with 18 additions and 0 deletions

View File

@ -1098,6 +1098,7 @@
"Default",
"AVX",
"AVX2",
"IA32",
"SSE",
"SSE2",
"SSE3",

View File

@ -1213,6 +1213,8 @@
v = "StreamingSIMDExtensions2"
elseif x == "SSE" then
v = "StreamingSIMDExtensions"
elseif x == "IA32" and _ACTION > "vs2010" then
v = "NoExtensions"
end
end
if v then

View File

@ -29,6 +29,21 @@
end
function suite.instructionSet_onIA32_onVS2010()
vectorextensions "IA32"
prepare()
test.isemptycapture()
end
function suite.instructionSet_onIA32()
premake.action.set("vs2012")
vectorextensions "IA32"
prepare()
test.capture [[
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
]]
end
function suite.instructionSet_onSSE()
vectorextensions "SSE"
prepare()