This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14420] New: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677


It seems that if any -O level is set, then the SSE expression with 
__builtin_ia32_movmskps will cause the error. Without -O, it seems OK. A reduced 
snippet that produces the error is incldued, along with some configuration 
information. My machine is a Redhat9 box maintained and current with Ximian 
red-carpet. I will report the same bug to Redhat's bugzilla.

[mpercy@mikesa20]$ uname -a
Linux mikesa20 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686 i686 i386 
GNU/Linux

[mpercy@mikesa20]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

[mpercy@mikesa20]$ cat foo.c
typedef float v4sf __attribute__ ((mode(V4SF),aligned(16)));
typedef int v4si __attribute__ ((mode(V4SI),aligned(16)));

unsigned foo(void)
{
    v4sf zero;
    v4si mask;
    if (__builtin_ia32_movmskps((v4sf)__builtin_ia32_cmpneqps((v4sf)mask, zero))
) return (1u << 29);
}
[mpercy@mikesa20]$ gcc -c -O -msse foo.c
foo.c: In function `foo':
foo.c:9: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
[mpercy@mikesa20]$ gcc -c -msse foo.c
[mpercy@mikesa20]$ 
[mpercy@mikesa20]$ gcc -O -msse foo.c
foo.c: In function `foo':
foo.c:9: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

-- 
           Summary:  Internal compiler error in gen_reg_rtx, at emit-
                    rtl.c:677
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mpercy at scires dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]