1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # This test verifies that the FPU correctly obviates structural hazards on its
6 # writeback port (e.g. fadd followed by fsgnj)
9 #include "riscv_test.h"
10 #include "test_macros.h"
17 li x2, 0x3FF0000000000000
20 #define TEST(nops, errcode) \
27 1:fmul.d f4, f2, f2 ;\
43 TEST(nop;nop;nop;nop,10)
44 TEST(nop;nop;nop;nop;nop,12)
45 TEST(nop;nop;nop;nop;nop;nop,14)