c_beqz
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Oct 2018 22:16:24 +0000 (23:16 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Oct 2018 22:16:24 +0000 (23:16 +0100)
riscv/insns/c_beqz.h

index 01bec6c1efd23cbc99a4f0ddfbadb32f72008e6e..bcd6ab341c2f4b2b35ce214e43a8dc49fe858417 100644 (file)
@@ -1,3 +1,3 @@
 require_extension('C');
-if (rv_eq(RVC_RS1S, 0))
+if (rv_eq(RVC_RS1S, sv_reg_t(0U)))
   set_pc(rv_add(pc, insn.rvc_b_imm()));