]> git.ipfire.org Git - thirdparty/gcc.git/commit
xtensa: fix ICE on pr59037.c test
authorjcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Nov 2016 18:34:43 +0000 (18:34 +0000)
committerjcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Nov 2016 18:34:43 +0000 (18:34 +0000)
commitc8690c6cb4f59c94faa958af7e31ce2861843a26
tree14278f2b6eddd68b0ce7a0bb9098db904bab6206
parent89c329d104d5f054a5c865205b7667e74f896527
xtensa: fix ICE on pr59037.c test

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-02  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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241800 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/xtensa/xtensa.c