1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # This test verifies that the FPU correctly obviates structural hazards on its
8 # writeback port (e.g. fadd followed by fsgnj)
11 #include "riscv_test.h"
12 #include "test_macros.h"
19 li x2, 0x3FF0000000000000
22 #define TEST(nops, errcode) \
29 1:fmul.d f4, f2, f2 ;\
45 TEST(nop;nop;nop;nop,10)
46 TEST(nop;nop;nop;nop;nop,12)
47 TEST(nop;nop;nop;nop;nop;nop,14)