diff --git a/tests/cpu/ppu_fpu/ppu_fpu.cpp b/tests/cpu/ppu_fpu/ppu_fpu.cpp new file mode 100644 index 0000000..433b73c --- /dev/null +++ b/tests/cpu/ppu_fpu/ppu_fpu.cpp @@ -0,0 +1,121 @@ +#include +#include +#include +#include + +#define PRINT_FPR1(name,i,FPR) printf(name "[%02d] -> %016llx\n", i, *(unsigned long long*)&FPR); +#define PRINT_FPR2(name,i,j,FPR) printf(name "[%02d],[%02d]) -> %016llx\n", i, j, *(unsigned long long*)&FPR); +#define PRINT_FPR3(name,i,j,k,FPR) printf(name "[%02d],[%02d],[%02d]) -> %016llx\n", i, j, k, *(unsigned long long*)&FPR); + +// Loops with floats +#define ITERATE1f(x) \ + for (unsigned int i=0; i