RISC-V: Fix %lo overflow with BLKmode references.
authorJim Wilson <jimw@sifive.com>
Tue, 19 Mar 2019 22:33:34 +0000 (22:33 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 19 Mar 2019 22:33:34 +0000 (15:33 -0700)
commit026216a753ef0a757a9e368a59fa667ea422cf09
tree222389407fc02c0fe6d9412bf3dbebd20859fc61
parent2a23a1c39fb33df0277abd4486a3da64ae5e62c2
RISC-V: Fix %lo overflow with BLKmode references.

gcc/
PR target/89411
* config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
align, size, offset.  Use them to handle a BLKmode reference.  Update
comment.
(riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.

gcc/testsuite/
PR target/89411
* gcc.target/riscv/losum-overflow.c: New test.

From-SVN: r269813
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/riscv/losum-overflow.c [new file with mode: 0644]