aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/bgeu.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-04-02 14:23:30 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-04-02 14:23:30 -0700
commitd9d73d80c1b738b3b30eb40d192f61cbdb0e201f (patch)
tree347c8eff58857d9bf242a1d97070be3f179f6684 /riscv/insns/bgeu.h
parentc8c828b55c8e25929bdbcd00032276e04391430e (diff)
downloadspike-d9d73d80c1b738b3b30eb40d192f61cbdb0e201f.zip
spike-d9d73d80c1b738b3b30eb40d192f61cbdb0e201f.tar.gz
spike-d9d73d80c1b738b3b30eb40d192f61cbdb0e201f.tar.bz2
Simplify RV32 comparisons
No need to eliminate the upper 32 bits of the 64-bit x-register, as all RV32 instructions should sign-extend their results to 64 bits.
Diffstat (limited to 'riscv/insns/bgeu.h')
-rw-r--r--riscv/insns/bgeu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/bgeu.h b/riscv/insns/bgeu.h
index 6325466..d764a34 100644
--- a/riscv/insns/bgeu.h
+++ b/riscv/insns/bgeu.h
@@ -1,2 +1,2 @@
-if(cmp_trunc(RS1) >= cmp_trunc(RS2))
+if(RS1 >= RS2)
set_pc(BRANCH_TARGET);