* [Bug target/30185] ICE with unrecognizable insn on powerpc64 while building gimp with -O1+
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
@ 2006-12-12 21:56 ` pinskia at gcc dot gnu dot org
2006-12-12 21:56 ` vapier at gentoo dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-12 21:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-12 21:56 -------
This is obvious an incorrect RTL instruction:
(insn 973 971 974 95 (set (reg:SI 546)
(subreg:DI (reg/v:TI 355 [ b ]) 8)) -1 (nil)
(nil))
We cannot set a SI from a DI :).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] ICE with unrecognizable insn on powerpc64 while building gimp with -O1+
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
2006-12-12 21:56 ` [Bug target/30185] " pinskia at gcc dot gnu dot org
@ 2006-12-12 21:56 ` vapier at gentoo dot org
2006-12-12 22:12 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: vapier at gentoo dot org @ 2006-12-12 21:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from vapier at gentoo dot org 2006-12-12 21:56 -------
tested these versions/snaps and got same result:
4.1.1
4.1.0-20061208
4.2.0-20061205
4.3.0-20061209
--
vapier at gentoo dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.1 4.2.0 4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] ICE with unrecognizable insn on powerpc64 while building gimp with -O1+
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
2006-12-12 21:56 ` [Bug target/30185] " pinskia at gcc dot gnu dot org
2006-12-12 21:56 ` vapier at gentoo dot org
@ 2006-12-12 22:12 ` pinskia at gcc dot gnu dot org
2006-12-12 22:16 ` vapier at gentoo dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-12 22:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-12-12 22:12 -------
Testcase?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] ICE with unrecognizable insn on powerpc64 while building gimp with -O1+
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (2 preceding siblings ...)
2006-12-12 22:12 ` pinskia at gcc dot gnu dot org
@ 2006-12-12 22:16 ` vapier at gentoo dot org
2006-12-13 6:41 ` [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: vapier at gentoo dot org @ 2006-12-12 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from vapier at gentoo dot org 2006-12-12 22:15 -------
Created an attachment (id=12792)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12792&action=view)
PR30185.i
blah i knew i was missing something
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (3 preceding siblings ...)
2006-12-12 22:16 ` vapier at gentoo dot org
@ 2006-12-13 6:41 ` pinskia at gcc dot gnu dot org
2006-12-14 12:19 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-13 6:41 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-12-13 06:40 -------
Reduced testcase:
typedef struct num {
char is_fixnum;
long long ivalue;
} num;
num num_intdiv(num a, num b)
{
num ret;
ret.ivalue = a.ivalue / b.ivalue;
return ret;
}
-----------
On the trunk we get a better ICE:
t.i: In function num_intdiv:
t.i:8: internal compiler error: in emit_move_insn, at expr.c:3276
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This comes:
(define_expand "div<mode>3"
[(set (match_operand:GPR 0 "gpc_reg_operand" "")
(div:GPR (match_operand:GPR 1 "gpc_reg_operand" "")
(match_operand:GPR 2 "reg_or_cint_operand" "")))]
""
"
{
if (GET_CODE (operands[2]) == CONST_INT
&& INTVAL (operands[2]) > 0
&& exact_log2 (INTVAL (operands[2])) >= 0)
;
else if (TARGET_POWERPC)
{
operands[2] = force_reg (SImode, operands[2]); <--- this force_reg
but it is obvious we could have DImode here. operands[2] here is a subreg of a
TImode.
I commented out the defintion for MAX_FIXED_MODE_SIZE and it works.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC host triplet|powerpc64-linux-gnu |
GCC target triplet|powerpc64-linux-gnu |powerpc64-*-*
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2006-12-13 06:40:57
date| |
Summary|ICE with unrecognizable insn|[4.1/4.2/4.3 Regression] ICE
|on powerpc64 while building |with struct and divide
|gimp with -O1+ |
Target Milestone|--- |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (4 preceding siblings ...)
2006-12-13 6:41 ` [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide pinskia at gcc dot gnu dot org
@ 2006-12-14 12:19 ` jakub at gcc dot gnu dot org
2006-12-15 23:08 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-14 12:19 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-12-13 06:40:57 |2006-12-14 12:18:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (5 preceding siblings ...)
2006-12-14 12:19 ` jakub at gcc dot gnu dot org
@ 2006-12-15 23:08 ` jakub at gcc dot gnu dot org
2006-12-15 23:09 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-15 23:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2006-12-15 23:08 -------
Subject: Bug 30185
Author: jakub
Date: Fri Dec 15 23:08:18 2006
New Revision: 119947
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119947
Log:
PR target/30185
* config/rs6000/rs6000.md (div<mode>3): Use correct mode in
force_reg call.
* gcc.c-torture/execute/pr30185.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr30185.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.md
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (6 preceding siblings ...)
2006-12-15 23:08 ` jakub at gcc dot gnu dot org
@ 2006-12-15 23:09 ` jakub at gcc dot gnu dot org
2006-12-15 23:11 ` jakub at gcc dot gnu dot org
2006-12-15 23:14 ` jakub at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-15 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2006-12-15 23:09 -------
Subject: Bug 30185
Author: jakub
Date: Fri Dec 15 23:09:26 2006
New Revision: 119948
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119948
Log:
PR target/30185
* config/rs6000/rs6000.md (div<mode>3): Use correct mode in
force_reg call.
* gcc.c-torture/execute/pr30185.c: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.c-torture/execute/pr30185.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/config/rs6000/rs6000.md
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (7 preceding siblings ...)
2006-12-15 23:09 ` jakub at gcc dot gnu dot org
@ 2006-12-15 23:11 ` jakub at gcc dot gnu dot org
2006-12-15 23:14 ` jakub at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-15 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2006-12-15 23:11 -------
Subject: Bug 30185
Author: jakub
Date: Fri Dec 15 23:11:00 2006
New Revision: 119949
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119949
Log:
PR target/30185
* config/rs6000/rs6000.md (div<mode>3): Use correct mode in
force_reg call.
* gcc.c-torture/execute/pr30185.c: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/execute/pr30185.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/config/rs6000/rs6000.md
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/30185] [4.1/4.2/4.3 Regression] ICE with struct and divide
2006-12-12 21:54 [Bug target/30185] New: ICE with unrecognizable insn on powerpc64 while building gimp with -O1+ vapier at gentoo dot org
` (8 preceding siblings ...)
2006-12-15 23:11 ` jakub at gcc dot gnu dot org
@ 2006-12-15 23:14 ` jakub at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-15 23:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2006-12-15 23:14 -------
Fixed in SVN.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30185
^ permalink raw reply [flat|nested] 11+ messages in thread