mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-3211: Code review fixes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -13,19 +13,6 @@ TEST f4_compareLogic_Main()
|
||||
}
|
||||
#endif
|
||||
|
||||
#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_FLOAT
|
||||
TEST f4_greaterThan_Main()
|
||||
|
||||
Reference in New Issue
Block a user