force-riscv icon indicating copy to clipboard operation
force-riscv copied to clipboard

lui instructions issue

Open crystalysj opened this issue 10 months ago • 3 comments

hi, why I created instructions lui has "-" imm i changed um_itree_01_force.py def generate(self, **kargs): for _ in range(40): the_instruction = self.pickWeighted(RV_G_instructions) self.genInstruction(the_instruction)

and the result has 0000000040000838:bfddeb37 LUI x22, -262690

crystalysj avatar Apr 08 '24 09:04 crystalysj

can't get your idea. Please give more detail first.

hanfeng0114 avatar Apr 12 '24 02:04 hanfeng0114

i mean why does lui generate a signed immediate number?

crystalysj avatar Apr 12 '24 02:04 crystalysj

i mean why does lui generate a signed immediate number?

u can give a random Immediate number.

kong-ling-hui avatar Apr 25 '24 08:04 kong-ling-hui