GP-3211: Refactored pcodetest scripts

This commit is contained in:
ghidorahrex 2023-08-15 15:53:42 +00:00
parent 8936bf9d55
commit 8004108681
7 changed files with 95 additions and 35 deletions

View file

@ -16,6 +16,19 @@
#include "pcode_test.h"
#ifdef HAS_DOUBLE
f8 f8_compareLogic(f8 lhs, f8 rhs)
{
if (lhs < 0)
lhs += 2;
if (lhs > 0)
lhs += 4;
if (lhs == 0)
lhs += 8;
if (lhs != rhs)
lhs += 16;
return lhs;
}
/* Comparison operators */
f8 f8_greaterThan(f8 lhs, f8 rhs)
{