aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_beq.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/c_beq.h')
-rw-r--r--riscv/insns/c_beq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/c_beq.h b/riscv/insns/c_beq.h
new file mode 100644
index 0000000..031d96d
--- /dev/null
+++ b/riscv/insns/c_beq.h
@@ -0,0 +1,3 @@
+require_rvc;
+if(cmp_trunc(CRS1S) == cmp_trunc(CRS2S))
+ set_pc(CBRANCH_TARGET);