Skip to content
Chuck Walbourn edited this page May 15, 2024 · 7 revisions

This is a repository for the test suite for DirectXMath on GitHub.

Setup

  • Install git
  • Install CMake, Ninja, and MSVC or clang/LLVM for Windows
git clone https://github.com/Microsoft/DirectXMath.git
cd DirectXMath
git clone https://github.com/walbourn/directxmathtest.git Tests
git clone https://github.com/Microsoft/DirectXMath.wiki.git wiki

Running tests

CTest is supported

cd DirectXMath
cmake --preset=x64-Debug
cmake build out\build\x64-Debug
ctest --preset=x64-Debug

math3

This is the main DirectXMath test suite which is a console application.

Configurations

All configs use /fp:fast.

All Release configs use /Ox.

  • Debug/Release: x86 builds with /arch:SSE2 which is the default for x64
  • NI Debug/NI Release: Same as Debug/Release but with _XM_NO_INTRINSICS_ set
  • x87 Debug/X87 Release: Same as NI Debug/NI Release with /arch:IA32 set. Note there is for the x86 platform only.
  • SSE3 Debug/SSE3 Release: Same as Debug/Release but with SSE3 optimizations.
  • SSE4 Debug/SSE4 Release: Same as Debug/Release but with SSE4.1 optimizations.
  • AVX Debug/AVX Release: Same as Debug/Release but with /arch:AVX which includes SSE3, SSE4.1, and AVX optimizations.
  • AVX2 Debug/AVX2 Release: Same as Debug/Release but with /arch:AVX2 which includes SSE3, SSE4.1, AVX, and F16C optimizations.

ext

Testers for the Instruction Set extensions for guarded codepaths

shmath

Tester for Spherical Harmonics helpers

xdsp

Tester for XDSP Digital Signal Processing helper

Clone this wiki locally