Commit 0e9fd0e2 authored by Michael Clark's avatar Michael Clark Committed by Palmer Dabbelt
Browse files

RISC-V: Emit "i" suffix for instructions with immediate operands

This changes makes GCC asm output use instruction names that are
consistent with the RISC-V ISA manual.

- Add 'i' letter to riscv_print_operand that prints an i
  character if the operand is not a register.
- Update riscv.md to add %i2 to instructions with register
  register and register immediate variants.
parent 5ea0c87a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment