* [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
@ 2015-05-21 8:39 ` jakub at gcc dot gnu.org
2015-05-21 8:57 ` jakub at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-05-21 8:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Sounds like gimple folding issue.
We have:
vect__4.9_31 = (vector(4) float) { 0, 1, 2, 3 };
vect__5.10_32 = (vector(4) unsigned int) vect__4.9_31;
where the first stmt's rhs_code is FLOAT_EXPR and rhs1 is VECTOR_CST vector(4)
int, and the second stmt's rhs_code is FIX_TRUNC_EXPR.
So, for this combined together we should use VIEW_CONVERT_EXPR, but we use
FIX_TRUNC_EXPR.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
2015-05-21 8:39 ` [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] " jakub at gcc dot gnu.org
@ 2015-05-21 8:57 ` jakub at gcc dot gnu.org
2015-05-21 9:02 ` jakub at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-05-21 8:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems this is the
/* Handle cases of two conversions in a row. */
patterns in match.pd that are causing this.
I'd say the bug is that those simplifications are just handling
{inside,inter,final}_vec the same, no matter if it is vectors of float, ints,
unsigned ints etc.
Supposedly before match.pd has been added the bug was elsewhere, but similarly
didn't take care precisely what kind of vectors it is optimizing.
FLOAT_EXPR is used for conversion of vector {int,unsigned} to vector float,
FIX_TRUNC_EXPR fpr vector float to vector {int,unsigned} and convert
(NOP_EXPR/VIEW_CONVERT_EXPR?) for other conversions.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
2015-05-21 8:39 ` [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] " jakub at gcc dot gnu.org
2015-05-21 8:57 ` jakub at gcc dot gnu.org
@ 2015-05-21 9:02 ` jakub at gcc dot gnu.org
2015-05-21 19:18 ` jakub at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-05-21 9:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed, in 4.9 this is in tree-ssa-forwprop.c (combine_conversions) and in
fold-const.c (fold_unary_loc).
Perhaps we need {inter,inside,final}_vec_{int,float,unsignedp} variables too
and use them?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (2 preceding siblings ...)
2015-05-21 9:02 ` jakub at gcc dot gnu.org
@ 2015-05-21 19:18 ` jakub at gcc dot gnu.org
2015-05-22 8:12 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-05-21 19:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu May 21 19:17:28 2015
New Revision: 223500
URL: https://gcc.gnu.org/viewcvs?rev=223500&root=gcc&view=rev
Log:
PR tree-optimization/66233
* match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
Simplify.
* gcc.c-torture/execute/pr66233.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr66233.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/match.pd
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (3 preceding siblings ...)
2015-05-21 19:18 ` jakub at gcc dot gnu.org
@ 2015-05-22 8:12 ` jakub at gcc dot gnu.org
2015-06-18 10:20 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-05-22 8:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May 22 08:12:08 2015
New Revision: 223522
URL: https://gcc.gnu.org/viewcvs?rev=223522&root=gcc&view=rev
Log:
Backported from mainline
2015-05-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/66233
* match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
Simplify.
* gcc.c-torture/execute/pr66233.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr66233.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9/5/6 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (4 preceding siblings ...)
2015-05-22 8:12 ` jakub at gcc dot gnu.org
@ 2015-06-18 10:20 ` rguenth at gcc dot gnu.org
2015-06-18 10:21 ` [Bug tree-optimization/66233] [4.8/4.9 " rguenth at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-18 10:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doko at gcc dot gnu.org
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 66554 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (5 preceding siblings ...)
2015-06-18 10:20 ` rguenth at gcc dot gnu.org
@ 2015-06-18 10:21 ` rguenth at gcc dot gnu.org
2015-06-18 10:22 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-18 10:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |5.2.0, 6.0
Summary|[4.8/4.9/5/6 Regression] |[4.8/4.9 Regression]
|internal compiler error: in |internal compiler error: in
|expand_fix, at |expand_fix, at
|optabs.c:5358 |optabs.c:5358
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk/5.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (6 preceding siblings ...)
2015-06-18 10:21 ` [Bug tree-optimization/66233] [4.8/4.9 " rguenth at gcc dot gnu.org
@ 2015-06-18 10:22 ` jakub at gcc dot gnu.org
2015-06-18 10:44 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-18 10:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ok, I'll look at the 4.9/4.8 fix then.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (7 preceding siblings ...)
2015-06-18 10:22 ` jakub at gcc dot gnu.org
@ 2015-06-18 10:44 ` jakub at gcc dot gnu.org
2015-06-18 12:28 ` doko at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-18 10:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 35800
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35800&action=edit
gcc49-pr66233.patch
Untested 4.9 version of the fix.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (8 preceding siblings ...)
2015-06-18 10:44 ` jakub at gcc dot gnu.org
@ 2015-06-18 12:28 ` doko at gcc dot gnu.org
2015-06-18 14:04 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: doko at gcc dot gnu.org @ 2015-06-18 12:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #11 from Matthias Klose <doko at gcc dot gnu.org> ---
the proposed patch fixes the test case from PR66554 on aarch64-linux-gnu.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (9 preceding siblings ...)
2015-06-18 12:28 ` doko at gcc dot gnu.org
@ 2015-06-18 14:04 ` jakub at gcc dot gnu.org
2015-06-18 14:06 ` jakub at gcc dot gnu.org
2015-06-18 14:06 ` jakub at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-18 14:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 18 14:03:50 2015
New Revision: 224609
URL: https://gcc.gnu.org/viewcvs?rev=224609&root=gcc&view=rev
Log:
PR tree-optimization/66233
* fold-const.c (fold_unary_loc): Don't handle vector types.
Simplify.
* tree-ssa-forwprop.c (combine_conversions): Likewise.
* gcc.c-torture/execute/pr66233.c: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr66233.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/fold-const.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-ssa-forwprop.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (10 preceding siblings ...)
2015-06-18 14:04 ` jakub at gcc dot gnu.org
@ 2015-06-18 14:06 ` jakub at gcc dot gnu.org
2015-06-18 14:06 ` jakub at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-18 14:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/66233] [4.8/4.9 Regression] internal compiler error: in expand_fix, at optabs.c:5358
2015-05-21 6:49 [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 usignao at gmail dot com
` (11 preceding siblings ...)
2015-06-18 14:06 ` jakub at gcc dot gnu.org
@ 2015-06-18 14:06 ` jakub at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-18 14:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 18 14:06:04 2015
New Revision: 224611
URL: https://gcc.gnu.org/viewcvs?rev=224611&root=gcc&view=rev
Log:
PR tree-optimization/66233
* fold-const.c (fold_unary_loc): Don't handle vector types.
Simplify.
* tree-ssa-forwprop.c (combine_conversions): Likewise.
* gcc.c-torture/execute/pr66233.c: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/pr66233.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/fold-const.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-ssa-forwprop.c
^ permalink raw reply [flat|nested] 14+ messages in thread