This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] xtensa: fix ICE on pr59037.c test
- From: Max Filippov <jcmvbkbc at gmail dot com>
- To: "augustine dot sterling at gmail dot com" <augustine dot sterling at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "linux-xtensa at linux-xtensa dot org" <linux-xtensa at linux-xtensa dot org>
- Date: Wed, 2 Nov 2016 11:48:08 -0700
- Subject: Re: [PATCH] xtensa: fix ICE on pr59037.c test
- Authentication-results: sourceware.org; auth=none
- References: <1478027505-15674-1-git-send-email-jcmvbkbc@gmail.com> <CAGSvup-Lqqk=GCX4s2E02WwJe6od_XJ8CrXGv3NvL_ymXhcn5g@mail.gmail.com>
On Wed, Nov 2, 2016 at 10:23 AM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Tue, Nov 1, 2016 at 12:11 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> xtensa gcc gets ICE on pr59037.c test because its xtensa_output_literal
>> function cannot handle integer literals of sizes other than 4 and 8,
>> whereas the test uses 16-byte int vector.
>> Split integer literal formatting into the recursive function
>> xtensa_output_integer_literal_parts capable of handling literals of any
>> power of 2 size not less than 4.
>>
>> 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
>> gcc/
>> * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
>> New function.
>> (xtensa_output_literal): Use xtensa_output_integer_literal_parts
>> to format MODE_INT and MODE_PARTIAL_INT literals.
>
> Approved.
Applied to trunk. Thank you!
-- Max