public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/42416]  New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
@ 2009-12-17 22:14 janis at gcc dot gnu dot org
  2009-12-22  9:04 ` [Bug target/42416] " eres at il dot ibm dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-12-17 22:14 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]

GCC trunk gets a ICE when building SPEC CPU2000 test 177.mesa with "-O2 -mvsx
-mno-altivec -ftree-vectorize", as demonstrated by this minimized testcase:

void
gl_xform_normals_3fv (unsigned int n, float v[][3], const float m[16],
                      float u[][3], unsigned char normalize)
{
      unsigned int i;
      float m0 = m[0], m4 = m[4], m8 = m[8];
      float m1 = m[1], m5 = m[5], m9 = m[9];
      float m2 = m[2], m6 = m[6], m10 = m[10];
      for (i = 0; i < n; i++)
        {
          float ux = u[i][0], uy = u[i][1], uz = u[i][2];
          v[i][0] = ux * m0 + uy * m1 + uz * m2;
          v[i][1] = ux * m4 + uy * m5 + uz * m6;
          v[i][2] = ux * m8 + uy * m9 + uz * m10;
        }
}

elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/gcc -O2 -mvsx -mno-altivec
-ftree-vectorize -c bug.c
bug.c: In function ‘gl_xform_normals_3fv’:
bug.c:2:1: internal compiler error: in rs6000_builtin_vec_perm, at
config/rs6000/rs6000.c:3102
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

VSX support is new in GCC 4.5 so this is not a regression from earlier
releases.


-- 
           Summary: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
@ 2009-12-22  9:04 ` eres at il dot ibm dot com
  2010-01-05  0:53 ` janis at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: eres at il dot ibm dot com @ 2009-12-22  9:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from eres at il dot ibm dot com  2009-12-22 09:04 -------
(In reply to comment #0)
> GCC trunk gets a ICE when building SPEC CPU2000 test 177.mesa with "-O2 -mvsx
> -mno-altivec -ftree-vectorize", as demonstrated by this minimized testcase:

-mno-altivec -mvsx should not be a valid compiler option.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
  2009-12-22  9:04 ` [Bug target/42416] " eres at il dot ibm dot com
@ 2010-01-05  0:53 ` janis at gcc dot gnu dot org
  2010-01-08 18:02 ` janis at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-01-05  0:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from janis at gcc dot gnu dot org  2010-01-05 00:53 -------
Currently the compiler explicitly allows "-mvsx -mno-altivec".  If those
options are used together, should vsx and altivec both be turned on, or both
turned off?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-01-08 18:02 ` janis at gcc dot gnu dot org
@ 2010-01-08 18:02 ` janis at gcc dot gnu dot org
  2010-01-11 20:30 ` janis at gcc dot gnu dot org
  2010-02-08 21:13 ` janis at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-01-08 18:02 UTC (permalink / raw)
  To: gcc-bugs



-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |janis at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-08 18:01:42
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-01-08 18:02 ` janis at gcc dot gnu dot org
@ 2010-01-08 18:02 ` janis at gcc dot gnu dot org
  2010-01-08 18:02 ` janis at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-01-08 18:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from janis at gcc dot gnu dot org  2010-01-08 18:02 -------
*** Bug 42419 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
  2009-12-22  9:04 ` [Bug target/42416] " eres at il dot ibm dot com
  2010-01-05  0:53 ` janis at gcc dot gnu dot org
@ 2010-01-08 18:02 ` janis at gcc dot gnu dot org
  2010-01-08 18:02 ` janis at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-01-08 18:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from janis at gcc dot gnu dot org  2010-01-08 18:01 -------
*** Bug 42417 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-01-08 18:02 ` janis at gcc dot gnu dot org
@ 2010-01-11 20:30 ` janis at gcc dot gnu dot org
  2010-02-08 21:13 ` janis at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-01-11 20:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from janis at gcc dot gnu dot org  2010-01-11 20:29 -------
Subject: Bug 42416

Author: janis
Date: Mon Jan 11 20:29:40 2010
New Revision: 155816

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155816
Log:
        PR target/42416
        * config/rs6000/rs6000.c (rs6000_override_options): On targets
        that support VSX, warn for -mno-altivec if vsx is not disabled,
        and disable vsx.
        * gcc.target/powerpc/warn-1.c: New test.
        * gcc.target/powerpc/warn-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/powerpc/warn-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/warn-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/42416] ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx
  2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-01-11 20:30 ` janis at gcc dot gnu dot org
@ 2010-02-08 21:13 ` janis at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-02-08 21:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from janis at gcc dot gnu dot org  2010-02-08 21:13 -------
Fixed by the patch in comment #5.


-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42416


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-08 21:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-17 22:14 [Bug target/42416] New: ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx janis at gcc dot gnu dot org
2009-12-22  9:04 ` [Bug target/42416] " eres at il dot ibm dot com
2010-01-05  0:53 ` janis at gcc dot gnu dot org
2010-01-08 18:02 ` janis at gcc dot gnu dot org
2010-01-08 18:02 ` janis at gcc dot gnu dot org
2010-01-08 18:02 ` janis at gcc dot gnu dot org
2010-01-11 20:30 ` janis at gcc dot gnu dot org
2010-02-08 21:13 ` janis at gcc dot gnu dot org

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