GP-3211: Code review fixes

This commit is contained in:
ghidorahrex 2023-08-21 15:25:15 +00:00
parent 8004108681
commit 2853f487a8
16 changed files with 230 additions and 330 deletions

View file

@ -1,5 +1,18 @@
#include "pcode_test.h"
#ifdef HAS_DOUBLE
TEST f8_compareLogic_Main()
{
extern f8 f8_compareLogic(f8 lhs, f8 rhs);
ASSERTF8(f8_compareLogic(0x1, 0x1), 21);
ASSERTF8(f8_compareLogic(0x1, 0x2), 21);
ASSERTF8(f8_compareLogic(0x2, 0x1), 22);
ASSERTF8(f8_compareLogic(-0x1, -0x1), 21);
ASSERTF8(f8_compareLogic(-0x1, -0x2), 21);
ASSERTF8(f8_compareLogic(-0x2, -0x1), 24);
}
#endif
/* Comparison operators */
#ifdef HAS_DOUBLE
TEST f8_greaterThan_Main()