c_srli
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Oct 2018 22:22:07 +0000 (23:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Oct 2018 22:22:07 +0000 (23:22 +0100)
riscv/insns/c_srli.h

index 904dbf16f97019882fb4f042b9ac8ca09e6aed5f..419ee308e025e059224a880218154a0cb2a41b4a 100644 (file)
@@ -1,3 +1,3 @@
 require_extension('C');
-require(insn.rvc_zimm() < xlen);
+require(rv_lt(insn.rvc_zimm(), sv_sreg_t(xlen)));
 WRITE_RVC_RS1S(sext_xlen(rv_sr(zext_xlen(RVC_RS1S), insn.rvc_zimm())));