From 065ddfd8d434ff901b14c71b1ba5eaf095473a3b Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 25 Mar 2025 22:40:06 +0100 Subject: [PATCH] + RiscV: ROL/ROR code generation support --- compiler/riscv/cgrv.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/riscv/cgrv.pas b/compiler/riscv/cgrv.pas index 74732e5504..1b60993af0 100644 --- a/compiler/riscv/cgrv.pas +++ b/compiler/riscv/cgrv.pas @@ -85,10 +85,10 @@ unit cgrv; const TOpCG2AsmConstOp: Array[topcg] of TAsmOp = (A_NONE, A_NONE,A_ADDI,A_ANDI,A_NONE,A_NONE,A_NONE,A_NONE, - A_None,A_None,A_ORI,A_SRAI,A_SLLI,A_SRLI,A_NONE,A_XORI,A_None,A_None); + A_None,A_None,A_ORI,A_SRAI,A_SLLI,A_SRLI,A_NONE,A_XORI,A_None,A_RORI); TOpCG2AsmOp: Array[topcg] of TAsmOp = (A_NONE, A_NONE,A_ADD,A_AND,A_DIVU,A_DIV,A_MUL,A_MUL, - A_None,A_None,A_OR,A_SRA,A_SLL,A_SRL,A_SUB,A_XOR,A_None,A_None); + A_None,A_None,A_OR,A_SRA,A_SLL,A_SRL,A_SUB,A_XOR,A_ROL,A_ROR); {$ifdef extdebug} function ref2string(const ref : treference) : string;