diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-02 14:23:30 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-02 14:23:30 -0700 |
commit | d9d73d80c1b738b3b30eb40d192f61cbdb0e201f (patch) | |
tree | 347c8eff58857d9bf242a1d97070be3f179f6684 /riscv/insns/bltu.h | |
parent | c8c828b55c8e25929bdbcd00032276e04391430e (diff) | |
download | spike-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/bltu.h')
-rw-r--r-- | riscv/insns/bltu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/bltu.h b/riscv/insns/bltu.h index 250fd4f..ff75e8a 100644 --- a/riscv/insns/bltu.h +++ b/riscv/insns/bltu.h @@ -1,2 +1,2 @@ -if(cmp_trunc(RS1) < cmp_trunc(RS2)) +if(RS1 < RS2) set_pc(BRANCH_TARGET); |