aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/sltu.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/sltu.h
parentc8c828b55c8e25929bdbcd00032276e04391430e (diff)
downloadriscv-isa-sim-d9d73d80c1b738b3b30eb40d192f61cbdb0e201f.zip
riscv-isa-sim-d9d73d80c1b738b3b30eb40d192f61cbdb0e201f.tar.gz
riscv-isa-sim-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/sltu.h')
-rw-r--r--riscv/insns/sltu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/sltu.h b/riscv/insns/sltu.h
index 3a353fd..84d97a2 100644
--- a/riscv/insns/sltu.h
+++ b/riscv/insns/sltu.h
@@ -1 +1 @@
-WRITE_RD(cmp_trunc(RS1) < cmp_trunc(RS2));
+WRITE_RD(RS1 < RS2);