From d9d73d80c1b738b3b30eb40d192f61cbdb0e201f Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 2 Apr 2015 14:23:30 -0700 Subject: 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. --- riscv/insns/bgeu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/insns/bgeu.h') 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); -- cgit v1.1