]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - opcodes/ChangeLog
RISC-V: Convert the ADD/ADDI to the compressed MV/LI if RS1 is zero.
authorJim Wilson <jimw@sifive.com>
Wed, 19 Feb 2020 22:51:07 +0000 (14:51 -0800)
committerJim Wilson <jimw@sifive.com>
Wed, 19 Feb 2020 22:51:07 +0000 (14:51 -0800)
commitfa16423949fc78b3d9c499eddefa91b99228fbc9
treea7092b040556f52f3d0e236b1786524a0f32bb07
parent741cb83912fffbc65784168204ce1a597e0fbd26
RISC-V: Convert the ADD/ADDI to the compressed MV/LI if RS1 is zero.

2020-02-19  Nelson Chu  <nelson.chu@sifive.com>
gas/
* testsuite/gas/riscv/c-add-addi.d: New testcase.
* testsuite/gas/riscv/c-add-addi.s: Likewise.
opcodes/
* riscv-opc.c (riscv_opcodes): Convert add/addi to the compressed
c.mv/c.li if rs1 is zero.

Change-Id: Id939b5e6db80d267a832545f3ffef7b9ba881f7d
gas/ChangeLog
gas/testsuite/gas/riscv/c-add-addi.d [new file with mode: 0644]
gas/testsuite/gas/riscv/c-add-addi.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/riscv-opc.c