aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/bgeu.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-09-13 18:00:08 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-09-13 18:00:08 -0700
commit1583b7a9e256107094946fccb0d22541c9902225 (patch)
tree898d2c9b066583e9591246b60bae96f5a4fd6347 /riscv/insns/bgeu.h
parent19b59dd9a00e6cd68e4f81a116d400289e513402 (diff)
downloadspike-1583b7a9e256107094946fccb0d22541c9902225.zip
spike-1583b7a9e256107094946fccb0d22541c9902225.tar.gz
spike-1583b7a9e256107094946fccb0d22541c9902225.tar.bz2
[xcc, sim] replaced ble/bleu with bge/bgeu
This will simplify control logic (since every branch has a logical inverse)
Diffstat (limited to 'riscv/insns/bgeu.h')
-rw-r--r--riscv/insns/bgeu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/insns/bgeu.h b/riscv/insns/bgeu.h
new file mode 100644
index 0000000..52d6661
--- /dev/null
+++ b/riscv/insns/bgeu.h
@@ -0,0 +1,2 @@
+if(cmp_trunc(RA) >= cmp_trunc(RB))
+ npc = BRANCH_TARGET;