RISC-V: compress "addi d,CV,z" to "c.mv d,CV"
authorLifang Xia <lifang_xia@c-sky.com>
Thu, 15 Apr 2021 02:51:14 +0000 (10:51 +0800)
committerLifang Xia <lifang_xia@c-sky.com>
Fri, 16 Apr 2021 03:25:15 +0000 (11:25 +0800)
commita8ab20932084328fb48930c028b60a348c6644b3
treea65f0a2cac4ebfa15f49f757ae66a319830b0408
parentad7c46164f2d558be9f34c1902430259eb00e62b
RISC-V: compress "addi d,CV,z" to "c.mv d,CV"

PR 27732
gas/
* testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
c.mv a4,a4.
* testsuite/gas/riscv/c-zero-imm.s: Likewise.
opcodes/
* riscv-opc.c (riscv_opcodes): New insn alias for addi. Compress
"addi d,CV,z" to "c.mv d,CV".
gas/testsuite/gas/riscv/c-zero-imm.d
gas/testsuite/gas/riscv/c-zero-imm.s
opcodes/riscv-opc.c