diff options
Diffstat (limited to 'riscv/insns')
-rw-r--r-- | riscv/insns/czero_eqz.h | 2 | ||||
-rw-r--r-- | riscv/insns/czero_nez.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/czero_eqz.h b/riscv/insns/czero_eqz.h new file mode 100644 index 0000000..24062af --- /dev/null +++ b/riscv/insns/czero_eqz.h @@ -0,0 +1,2 @@ +require_extension(EXT_ZICOND); +WRITE_RD(RS2 == 0 ? 0 : RS1); diff --git a/riscv/insns/czero_nez.h b/riscv/insns/czero_nez.h new file mode 100644 index 0000000..cd6c8af --- /dev/null +++ b/riscv/insns/czero_nez.h @@ -0,0 +1,2 @@ +require_extension(EXT_ZICOND); +WRITE_RD(RS2 != 0 ? 0 : RS1); |