aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/beq.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/beq.h')
-rw-r--r--riscv/insns/beq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/insns/beq.h b/riscv/insns/beq.h
new file mode 100644
index 0000000..7b26488
--- /dev/null
+++ b/riscv/insns/beq.h
@@ -0,0 +1,2 @@
+if(cmp_trunc(RS1) == cmp_trunc(RS2))
+ set_pc(BRANCH_TARGET);