add rv_eq and rv_ne
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Oct 2018 05:21:42 +0000 (06:21 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Oct 2018 05:21:42 +0000 (06:21 +0100)
riscv/insns/beq.h
riscv/insns/bne.h

index fd7e0614955879ef8a31ed978b9081e20a9da593..1d57ca95e37b7eb027e4f64b10462bf463548faa 100644 (file)
@@ -1,2 +1,2 @@
-if(RS1 == RS2)
+if(rv_eq(RS1, RS2))
   set_pc(BRANCH_TARGET);
index 1e6cb7c7ac2ffd3dfbdf34c6ab58cf27c69a2139..3f0921cf67876888104e9a09e1350da09650ec32 100644 (file)
@@ -1,2 +1,2 @@
-if(RS1 != RS2)
+if(rv_ne(RS1, RS2))
   set_pc(BRANCH_TARGET);