About 1,790,000 results
Open links in new tab
  1. riscv - RISC-V ADDI instruction - Stack Overflow

    Jun 4, 2018 · I am currently working on implementing RV32I Base Instruction Set. I had a question about ADDI instruction. In the manual, how to understand this clause "ADDI rd, rs1, 0 is used to implement …

  2. RISC-V build 32-bit constants with LUI and ADDI - Stack Overflow

    Jun 7, 2018 · Loading a 32-bit constant with a single addi instruction The issue explained above is due to the sign extension that the immediate in addi undergoes. The decision of sign extending addi 's …

  3. Why risc-v ADDI instruction don't take 12 bits value in hex?

    Feb 4, 2022 · ADDI instruction takes -1 and extends it to 32bits as below addi t1, zero, -1 (gdb) info register t1 t1 0xffffffff -1 But when imm12 value is 0x800, it throws illegal operand err...

  4. RISC-V generate -1 / 0xFFFFFFFF in a register with LUI / ADDI?

    Jul 27, 2019 · I am learning how to write code for a RISC-V processor. I want to store a value of 0xFFFFFFFF into memory / a register. I can extend the 12 immediate bits of addi instruction by …

  5. Assembly language (MIPS) difference betweent addi and add

    Mar 20, 2013 · Assembly language (MIPS) difference betweent addi and add Asked 12 years, 9 months ago Modified 7 years, 11 months ago Viewed 92k times

  6. Why does riscv32-gcc use LI and ADDI to put a 32-bit constant in a ...

    Apr 26, 2022 · Near duplicate of RISC-V build 32-bit constants with LUI and ADDI but that doesn't mention or explain GCC emitting li with the already-left-shifted value instead of lui with a value to be …

  7. Why would we use addiu instead of addi? - Stack Overflow

    Mar 29, 2016 · In MIPS assembly, what is the benefit of using addiu over addi? Isn't addiu unsigned (and will ruin our calculations?)

  8. assembly - Difference between "addi" and "add" for pseudoinstruction ...

    Sep 14, 2015 · Difference between "addi" and "add" for pseudoinstruction "move" in MIPS? Asked 10 years, 3 months ago Modified 10 years, 3 months ago Viewed 45k times

  9. andi vs. addi instruction in MIPS with negative immediate constant

    In mars, to see the actual real instructions, look in the Basic column of the source window. For the sake of the completeness of my answer, all that follows is prefaced by the top comments. I've created …

  10. In a MIPS assembly `addi` instruction, how is a hexadecimal immediate ...

    May 11, 2016 · Is there is a standard or recommendation for how the addi instruction (and others) should be interpreted in assembly, when hexadecimal immediate values are used?