diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 14:23:48 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 14:23:48 +0000 |
commit | 727081f99a5065787dd3d035f92ef9f502f3622c (patch) | |
tree | e5989948e5a8d46c78345e09d5f8b80f1600efda /lib/inst.h | |
parent | 90fb9816b495167c66f40284b66a9d4da22ae769 (diff) | |
download | ovm-727081f99a5065787dd3d035f92ef9f502f3622c.tar.gz ovm-727081f99a5065787dd3d035f92ef9f502f3622c.tar.bz2 ovm-727081f99a5065787dd3d035f92ef9f502f3622c.zip |
Removed OP_EQ signed versions as they're useless
A negative number under 2s complement can never be equal to its
positive as the top bit *must* be on. If two numbers are equivalent
bit-by-bit then they are equal for both signed and unsigned numbers.
Diffstat (limited to 'lib/inst.h')
-rw-r--r-- | lib/inst.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -62,10 +62,7 @@ typedef enum OP_XOR_WORD, OP_EQ_BYTE, - OP_EQ_CHAR, OP_EQ_HWORD, - OP_EQ_INT, - OP_EQ_LONG, OP_EQ_WORD, // Mathematical operations @@ -75,24 +72,28 @@ typedef enum OP_LT_INT, OP_LT_LONG, OP_LT_WORD, + OP_LTE_BYTE, OP_LTE_CHAR, OP_LTE_HWORD, OP_LTE_INT, OP_LTE_LONG, OP_LTE_WORD, + OP_GT_BYTE, OP_GT_CHAR, OP_GT_HWORD, OP_GT_INT, OP_GT_LONG, OP_GT_WORD, + OP_GTE_BYTE, OP_GTE_CHAR, OP_GTE_HWORD, OP_GTE_INT, OP_GTE_LONG, OP_GTE_WORD, + OP_PLUS_BYTE, OP_PLUS_HWORD, OP_PLUS_WORD, @@ -100,8 +101,8 @@ typedef enum // Simple I/O OP_PRINT_BYTE, OP_PRINT_CHAR, - OP_PRINT_INT, OP_PRINT_HWORD, + OP_PRINT_INT, OP_PRINT_LONG, OP_PRINT_WORD, |