public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() @ 2010-06-09 14:01 rainy6144 at gmail dot com 2010-06-11 18:25 ` [Bug rtl-optimization/44481] [4.3/4.4/4.5/4.6 Regression] " hjl dot tools at gmail dot com ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: rainy6144 at gmail dot com @ 2010-06-09 14:01 UTC (permalink / raw) To: gcc-bugs When compiling the following program with -O2, gcc gives an ICE "internal compiler error: in trunc_int_for_mode, at explow.c:56". Versions affected: gcc (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4) gcc (GCC) 4.5.1 20100521 (prerelease) ================================================ static inline unsigned parity(unsigned x) { return (unsigned) __builtin_parity(x); } unsigned f(unsigned rpoly) { return parity(rpoly & 1) ^ parity(rpoly & 6); } ================================================ -- Summary: __builtin_parity() causes ICE in trunc_int_for_mode() Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rainy6144 at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com @ 2010-06-11 18:25 ` hjl dot tools at gmail dot com 2010-06-11 19:55 ` [Bug target/44481] " ubizjak at gmail dot com ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: hjl dot tools at gmail dot com @ 2010-06-11 18:25 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from hjl dot tools at gmail dot com 2010-06-11 18:24 ------- It is caused by revision 121863: http://gcc.gnu.org/ml/gcc-cvs/2007-02/msg00421.html -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |uros Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-06-11 18:24:48 date| | Summary|__builtin_parity() causes |[4.3/4.4/4.5/4.6 Regression] |ICE in trunc_int_for_mode() |__builtin_parity() causes | |ICE in trunc_int_for_mode() Target Milestone|--- |4.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com 2010-06-11 18:25 ` [Bug rtl-optimization/44481] [4.3/4.4/4.5/4.6 Regression] " hjl dot tools at gmail dot com @ 2010-06-11 19:55 ` ubizjak at gmail dot com 2010-06-11 19:56 ` ubizjak at gmail dot com ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: ubizjak at gmail dot com @ 2010-06-11 19:55 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from ubizjak at gmail dot com 2010-06-11 19:54 ------- Generic parts do not like parity in CCmode. -- ubizjak at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |ubizjak at gmail dot com |dot org | Status|NEW |ASSIGNED Component|rtl-optimization |target Last reconfirmed|2010-06-11 18:24:48 |2010-06-11 19:54:41 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com 2010-06-11 18:25 ` [Bug rtl-optimization/44481] [4.3/4.4/4.5/4.6 Regression] " hjl dot tools at gmail dot com 2010-06-11 19:55 ` [Bug target/44481] " ubizjak at gmail dot com @ 2010-06-11 19:56 ` ubizjak at gmail dot com 2010-06-11 21:58 ` uros at gcc dot gnu dot org ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: ubizjak at gmail dot com @ 2010-06-11 19:56 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from ubizjak at gmail dot com 2010-06-11 19:55 ------- Created an attachment (id=20895) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20895&action=view) Patch to fix the failure. Patch in testing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com ` (2 preceding siblings ...) 2010-06-11 19:56 ` ubizjak at gmail dot com @ 2010-06-11 21:58 ` uros at gcc dot gnu dot org 2010-06-12 6:30 ` uros at gcc dot gnu dot org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: uros at gcc dot gnu dot org @ 2010-06-11 21:58 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from uros at gcc dot gnu dot org 2010-06-11 21:58 ------- Subject: Bug 44481 Author: uros Date: Fri Jun 11 21:58:31 2010 New Revision: 160638 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160638 Log: PR target/44481 * config/i386/i386.md (UNSPEC_PARITY): New unspec. (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX. (partiysi2_cmp): Ditto. (*partiyhi2_cmp): Ditto. (*parityqi2_cmp): Remove. testsuite/ChangeLog: PR target/44481 * gcc.target/i386/pr44481.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/pr44481.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.md trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com ` (3 preceding siblings ...) 2010-06-11 21:58 ` uros at gcc dot gnu dot org @ 2010-06-12 6:30 ` uros at gcc dot gnu dot org 2010-06-12 7:44 ` uros at gcc dot gnu dot org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: uros at gcc dot gnu dot org @ 2010-06-12 6:30 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from uros at gcc dot gnu dot org 2010-06-12 06:29 ------- Subject: Bug 44481 Author: uros Date: Sat Jun 12 06:29:44 2010 New Revision: 160647 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160647 Log: PR target/44481 * config/i386/i386.md (UNSPEC_PARITY): New unspec. (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX. (partiysi2_cmp): Ditto. (*partiyhi2_cmp): Ditto. (*parityqi2_cmp): Remove. testsuite/ChangeLog: PR target/44481 * gcc.target/i386/pr44481.c: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr44481.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/config/i386/i386.md branches/gcc-4_5-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com ` (4 preceding siblings ...) 2010-06-12 6:30 ` uros at gcc dot gnu dot org @ 2010-06-12 7:44 ` uros at gcc dot gnu dot org 2010-06-13 8:52 ` uros at gcc dot gnu dot org 2010-06-13 8:54 ` ubizjak at gmail dot com 7 siblings, 0 replies; 9+ messages in thread From: uros at gcc dot gnu dot org @ 2010-06-12 7:44 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from uros at gcc dot gnu dot org 2010-06-12 07:43 ------- Subject: Bug 44481 Author: uros Date: Sat Jun 12 07:43:40 2010 New Revision: 160654 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160654 Log: PR target/44481 * config/i386/i386.md (UNSPEC_PARITY): New unspec. (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX. (partiysi2_cmp): Ditto. (*partiyhi2_cmp): Ditto. (*parityqi2_cmp): Remove. testsuite/ChangeLog: PR target/44481 * gcc.target/i386/pr44481.c: New test. Added: branches/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr44481.c Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/config/i386/i386.md branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com ` (5 preceding siblings ...) 2010-06-12 7:44 ` uros at gcc dot gnu dot org @ 2010-06-13 8:52 ` uros at gcc dot gnu dot org 2010-06-13 8:54 ` ubizjak at gmail dot com 7 siblings, 0 replies; 9+ messages in thread From: uros at gcc dot gnu dot org @ 2010-06-13 8:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #7 from uros at gcc dot gnu dot org 2010-06-13 08:52 ------- Subject: Bug 44481 Author: uros Date: Sun Jun 13 08:51:51 2010 New Revision: 160672 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160672 Log: PR target/44481 * config/i386/i386.md (UNSPEC_PARITY): New unspec. (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX. (partiysi2_cmp): Ditto. (*partiyhi2_cmp): Ditto. (*parityqi2_cmp): Remove. testsuite/ChangeLog: PR target/44481 * gcc.target/i386/pr44481.c: New test. Added: branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr44481.c Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/config/i386/i386.md branches/gcc-4_3-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode() 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com ` (6 preceding siblings ...) 2010-06-13 8:52 ` uros at gcc dot gnu dot org @ 2010-06-13 8:54 ` ubizjak at gmail dot com 7 siblings, 0 replies; 9+ messages in thread From: ubizjak at gmail dot com @ 2010-06-13 8:54 UTC (permalink / raw) To: gcc-bugs ------- Comment #8 from ubizjak at gmail dot com 2010-06-13 08:54 ------- Fixed. -- ubizjak at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|4.4.5 |4.3.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44481 ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-06-13 8:54 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-06-09 14:01 [Bug rtl-optimization/44481] New: __builtin_parity() causes ICE in trunc_int_for_mode() rainy6144 at gmail dot com 2010-06-11 18:25 ` [Bug rtl-optimization/44481] [4.3/4.4/4.5/4.6 Regression] " hjl dot tools at gmail dot com 2010-06-11 19:55 ` [Bug target/44481] " ubizjak at gmail dot com 2010-06-11 19:56 ` ubizjak at gmail dot com 2010-06-11 21:58 ` uros at gcc dot gnu dot org 2010-06-12 6:30 ` uros at gcc dot gnu dot org 2010-06-12 7:44 ` uros at gcc dot gnu dot org 2010-06-13 8:52 ` uros at gcc dot gnu dot org 2010-06-13 8:54 ` ubizjak at gmail dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).