unknownbrackets / ps2autotests

A set of test programs run on a PS2, with accompanying results.
ISC License
25 stars 7 forks source link

Added fdivdelay test. #16

Closed jpd002 closed 9 years ago

jpd002 commented 9 years ago

This is a small test that shows the various delays for FDIV instructions (DIV, SQRT, RSQRT).

unknownbrackets commented 9 years ago

Cool, nice. So are these results consistent between runs? Or does it sometimes vary in the number of instructions it delays for? I would hope it doesn't vary.

If it does vary, we might want to structure the test output differently so that an emulator could pass it (exact result match) as long as it delayed by the minimum.

-[Unknown]

jpd002 commented 9 years ago

It doesn't vary and many games rely on that (placing a Q reading operation 7 instructions after a DIV).

I'll change the constants to actual floats literals to make it clearer.

unknownbrackets commented 9 years ago

Sweet, thanks.

-[Unknown]