| 1887 | #define ROUND_Chop 3 |
| 1888 | |
| 1889 | void doFRNDINT(U32 mode, float value, float result) { |
| 1890 | newInstruction(0); |
| 1891 | fpu_init(); |
| 1892 | setRounding(mode, 0); |
| 1893 | fldf32(value, 1); |
| 1894 | pushCode8(0xd9); |
| 1895 | pushCode8(rm(false, 7, 4)); |
| 1896 | writeTopFloat(2); |
| 1897 | runTestCPU(); |
| 1898 | struct FPU_Float i2f; |
| 1899 | i2f.i = memory->readd(HEAP_ADDRESS + 4 * 2); |
| 1900 | assertTrue(i2f.f == result); |
| 1901 | } |
| 1902 | |
| 1903 | void testFRNDINT() { |
| 1904 | if (!cpu->big) { |
no test coverage detected