]> gcc.gnu.org Git - gcc.git/commit
aarch64: Fix another bug in aarch64_add_offset_1 [PR94121]
authorJakub Jelinek <jakub@redhat.com>
Fri, 13 Mar 2020 10:33:16 +0000 (11:33 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Sep 2020 15:40:57 +0000 (17:40 +0200)
commit701d28c8f4d9694c683d617a1d2ba0985b7d92ac
tree90fc4988690f14a5fb5e39c05243297e79c4b852
parentd65c6cc0dcee875c3e5451209fbd87b2ac1fd751
aarch64: Fix another bug in aarch64_add_offset_1 [PR94121]

> I'm getting this ICE with -mabi=ilp32:
>
> during RTL pass: fwprop1
> /opt/gcc/gcc-20200312/gcc/testsuite/gcc.dg/pr94121.c: In function 'bar':
> /opt/gcc/gcc-20200312/gcc/testsuite/gcc.dg/pr94121.c:16:1: internal compiler error: in decompose, at rtl.h:2279

That is a preexisting issue, caused by another bug in the same function.
When mode is SImode and moffset is 0x80000000 (or anything else with the
bit 31 set), we need to sign-extend it.

2020-03-13  Jakub Jelinek  <jakub@redhat.com>

PR target/94121
* config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
instead of GEN_INT.

(cherry picked from commit c2f836c413b1e9ae45598338b4a2ecd33bd926fb)
gcc/config/aarch64/aarch64.c
This page took 0.055661 seconds and 6 git commands to generate.