tests/fpu: Add a test for result writing being suppressed
When an arithmetic instruction generates an invalid operation exception or a divide by zero exception, and that exception is enabled in the FPSCR, the writing of the result to the destination register should be suppressed, leaving whatever value was last written in the destination. Add a check that this occurs correctly, for the cases of square root of a negative number (invalid operation exception) and division by zero (zero divide exception). Signed-off-by: Paul Mackerras <paulus@ozlabs.org>pull/452/head
parent
34cf092bf6
commit
f2166d326c
Binary file not shown.
Loading…
Reference in New Issue