add rv_eq and rv_ne
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Oct 2018 05:20:05 +0000 (06:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Oct 2018 05:20:05 +0000 (06:20 +0100)
riscv/sv_insn_redirect.cc
riscv/sv_insn_redirect.h

index a986cefee4c279a63646c903e2abdf48bcccc764..012ff0d317e36e13d2a67380993c4c0af6dd5d03 100644 (file)
@@ -297,3 +297,13 @@ sreg_t sv_proc_t::rv_gt(sreg_t lhs, sreg_t rhs)
     return lhs > rhs;
 }
 
+reg_t sv_proc_t::rv_eq(reg_t lhs, reg_t rhs)
+{
+    return lhs == rhs;
+}
+
+reg_t sv_proc_t::rv_ne(reg_t lhs, reg_t rhs)
+{
+    return lhs != rhs;
+}
+
index aba4f0cb529a55c13681bbf211089817ee7e9ea1..d7e44ea588a221e0b386179d17258531b02a5b52 100644 (file)
@@ -110,6 +110,8 @@ public:
     sreg_t rv_lt(sreg_t lhs, sreg_t rhs);
     reg_t rv_gt(reg_t lhs, reg_t rhs);
     sreg_t rv_gt(sreg_t lhs, sreg_t rhs);
+    reg_t rv_eq(reg_t lhs, reg_t rhs);
+    reg_t rv_ne(reg_t lhs, reg_t rhs);
 
 #include "sv_insn_decl.h"
 };