need to check whether SP (reg 2) is used, without redirection
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 15 Oct 2018 05:52:02 +0000 (06:52 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 15 Oct 2018 05:52:02 +0000 (06:52 +0100)
riscv/insns/c_lui.h

index 75d8eb892fa966dccc966690f3640e124d68ceda..85f29ab216b1f84317e4748d60106a7ac0ee96b2 100644 (file)
@@ -1,5 +1,5 @@
 require_extension('C');
-if (insn.rvc_rd() == 2) { // c.addi16sp
+if (insn.insn_t::rvc_rd() == 2) { // c.addi16sp
   require(insn.rvc_addi16sp_imm() != 0);
   WRITE_REG(X_SP, sext_xlen(RVC_SP + insn.rvc_addi16sp_imm()));
 } else {