Commit b6e8fcb5 authored by David Reid's avatar David Reid

Update tests.

parent 631079d7
......@@ -2378,6 +2378,39 @@ int main(int argc, char** argv)
mal_bool32 hasErrorOccurred = MAL_FALSE;
int result = 0;
// Print the compiler.
#if defined(_MSC_VER) && !defined(__clang__)
printf("Compiler: VC++\n");
#endif
#if defined(__GNUC__) && !defined(__clang__)
printf("Compiler: GCC\n");
#endif
#if defined(__clang__)
printf("Compiler: Clang\n");
#endif
// Print CPU features.
if (mal_has_sse2()) {
printf("Has SSE: YES\n");
} else {
printf("Has SSE: NO\n");
}
if (mal_has_avx()) {
printf("Has AVX: YES\n");
} else {
printf("Has AVX: NO\n");
}
if (mal_has_avx512f()) {
printf("Has AVX-512F: YES\n");
} else {
printf("Has AVX-512F: NO\n");
}
if (mal_has_neon()) {
printf("Has NEON: YES\n");
} else {
printf("Has NEON: NO\n");
}
// Aligned malloc/free
printf("=== TESTING CORE ===\n");
result = do_core_tests();
......
......@@ -260,8 +260,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="mal_dithering.c" />
<ClCompile Include="mal_profiling.c">
<ClCompile Include="mal_dithering.c">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
......@@ -269,14 +268,22 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="mal_test_0.c">
<ClCompile Include="mal_profiling.c">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="mal_test_0.c">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="mal_test_0.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
......
gcc mal_test_0.c -o ./bin/mal_test_0.exe -Wall -mavx
g++ mal_test_0.cpp -o ./bin/mal_test_0_cpp.exe -Wall -mavx
\ No newline at end of file
@echo off
SET c_compiler=gcc
SET cpp_compiler=g++
@echo on
%c_compiler% mal_test_0.c -o ./bin/mal_test_0.exe -Wall -mavx
%cpp_compiler% mal_test_0.cpp -o ./bin/mal_test_0_cpp.exe -Wall -mavx
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment