Compress loads/stores with implicit 0 offset.
authorJim Wilson <jimw@sifive.com>
Tue, 28 Nov 2017 03:20:53 +0000 (19:20 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 28 Nov 2017 03:20:53 +0000 (19:20 -0800)
commitf0531ed6a429b0e6e6509e6852ccd3586f3fa1bd
treeb6e472cad38218619f2ee4f4ccad5af5efd1aaa2
parent033bfb739b525703bfe23f151d09e9beee3a2afe
Compress loads/stores with implicit 0 offset.

gas/
* config/tc-riscv.c (riscv_handle_implicit_zero_offset): New.
(riscv_ip): Cases 'k', 'l', 'm', 'n', 'M', 'N', add call to
riscv_handle_implicit_zero_offset.  At label load_store, replace
existing code with call to riscv_handle_implicit_zero_offset.
* testsuite/gas/riscv/c-ld.d, testsuite/gas/riscv/c-ld.s: New.
* testsuite/gas/riscv/c-lw.d, testsuite/gas/riscv/c-lw.s: New.
* testsuite/gas/riscv/riscv.exp: Run new tests.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/c-ld.d [new file with mode: 0644]
gas/testsuite/gas/riscv/c-ld.s [new file with mode: 0644]
gas/testsuite/gas/riscv/c-lw.d [new file with mode: 0644]
gas/testsuite/gas/riscv/c-lw.s [new file with mode: 0644]
gas/testsuite/gas/riscv/riscv.exp