pipeline refactoring - fmax >= 222 mhz
This commit is contained in:
@@ -18,7 +18,7 @@ VX_SRCS = kernel.c
|
||||
|
||||
CXXFLAGS += -std=c++11 -O0 -g -Wall -Wextra -pedantic -Wfatal-errors
|
||||
|
||||
CXXFLAGS += -I../../include
|
||||
CXXFLAGS += -I../../include -I../../../hw
|
||||
|
||||
PROJECT = dogfood
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <vortex.h>
|
||||
#include <VX_config.h>
|
||||
#include "testcases.h"
|
||||
#include "common.h"
|
||||
|
||||
@@ -25,6 +26,7 @@ public:
|
||||
this->add_test("imul", new Test_IMUL());
|
||||
this->add_test("idiv", new Test_IDIV());
|
||||
this->add_test("idiv-mul", new Test_IDIV_MUL());
|
||||
#ifdef EXT_F_ENABLE
|
||||
this->add_test("fadd", new Test_FADD());
|
||||
this->add_test("fsub", new Test_FSUB());
|
||||
this->add_test("fmul", new Test_FMUL());
|
||||
@@ -40,6 +42,7 @@ public:
|
||||
this->add_test("ftou", new Test_FTOU());
|
||||
this->add_test("tof", new Test_ITOF());
|
||||
this->add_test("utof", new Test_UTOF());
|
||||
#endif
|
||||
}
|
||||
|
||||
~TestMngr() {
|
||||
|
||||
@@ -15,8 +15,8 @@ union Float_t {
|
||||
};
|
||||
|
||||
inline bool almost_equal_eps(float a, float b, float eps = std::numeric_limits<float>::epsilon()) {
|
||||
auto tolerance = std::max(std::fabs(a), std::fabs(b)) * eps;
|
||||
return std::fabs(a - b) <= tolerance;
|
||||
auto tolerance = std::max(fabs(a), fabs(b)) * eps;
|
||||
return fabs(a - b) <= tolerance;
|
||||
}
|
||||
|
||||
inline bool almost_equal_ulp(float a, float b, int32_t ulp = 4) {
|
||||
|
||||
Reference in New Issue
Block a user