public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14249] New: internal compiler error: in push_reload, at reload.c:1315
@ 2004-02-22 23:12 karn at ka9q dot net
  2004-02-22 23:42 ` [Bug c/14249] " karn at ka9q dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: karn at ka9q dot net @ 2004-02-22 23:12 UTC (permalink / raw)
  To: gcc-bugs

When compiling the following program with

gcc -g -O2 -I. -Wall -march=i686 -msse2 -c -o viterbi615_sse2.o viterbi615_sse2.c

I get:

viterbi615_sse2.c: In function `update_viterbi615_blk_sse2':
viterbi615_sse2.c:205: internal compiler error: in push_reload, at reload.c:1315
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

As requested, the preprocessed source is at
http://www.ka9q.net/gcc_bug/viterbi615_sse2.i

-- 
           Summary: internal compiler error: in push_reload, at
                    reload.c:1315
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: karn at ka9q dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c/14249] internal compiler error: in push_reload, at reload.c:1315
  2004-02-22 23:12 [Bug c/14249] New: internal compiler error: in push_reload, at reload.c:1315 karn at ka9q dot net
@ 2004-02-22 23:42 ` karn at ka9q dot net
  2004-02-23  0:08 ` falk at debian dot org
  2004-05-26  2:37 ` [Bug rtl-optimization/14249] " pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: karn at ka9q dot net @ 2004-02-22 23:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From karn at ka9q dot net  2004-02-22 23:42 -------
The problem is apparently triggered by using __builtin_ia32_psrawi128(). This is
called by the SSE2 SIMD intrinsic _mm_srai_epi16(). If I rewrite my program to
call __builtin_ia32_psrawi128() directly, I get this different error message:

gcc -g -O2 -I. -Wall -march=i686 -msse2 -c -o viterbi615_sse2.o viterbi615_sse2.c
viterbi615_sse2.c: In function `update_viterbi615_blk_sse2':
viterbi615_sse2.c:184: internal compiler error: in ix86_expand_binop_builtin, at
config/i386/i386.c:13140
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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

* [Bug c/14249] internal compiler error: in push_reload, at reload.c:1315
  2004-02-22 23:12 [Bug c/14249] New: internal compiler error: in push_reload, at reload.c:1315 karn at ka9q dot net
  2004-02-22 23:42 ` [Bug c/14249] " karn at ka9q dot net
@ 2004-02-23  0:08 ` falk at debian dot org
  2004-05-26  2:37 ` [Bug rtl-optimization/14249] " pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: falk at debian dot org @ 2004-02-23  0:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2004-02-23 00:08 -------
Confirmed. Here's a test case, can probably be further reduced:

typedef int __v2di __attribute__ ((mode (V2DI)));
typedef int __v8hi __attribute__ ((mode (V8HI)));
 
static __inline __v2di
_mm_sub_epi16 (__v2di __A, __v2di __B)
{            
  return (__v2di) __builtin_ia32_psubw128 ((__v8hi) __A, (__v8hi) __B);
} 
static __inline __v2di
_mm_srai_epi16 (__v2di __A, int __B)
{ 
  return (__v2di) __builtin_ia32_psrawi128 ((__v8hi) __A, __B);
} 
             
void f(__v2di);
void update_viterbi615_blk_sse2 (__v2di *v)
{       
  int i;     
  for (i = 0; i < 1024; i += 2)
    { 
      __v2di decision0, m0, m1;
      m0 = v[i];
      m1 = v[0];
      decision0 = _mm_srai_epi16 (_mm_sub_epi16(m1, m0), 7);
      f(decision0);
    }
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


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


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

* [Bug rtl-optimization/14249] internal compiler error: in push_reload, at reload.c:1315
  2004-02-22 23:12 [Bug c/14249] New: internal compiler error: in push_reload, at reload.c:1315 karn at ka9q dot net
  2004-02-22 23:42 ` [Bug c/14249] " karn at ka9q dot net
  2004-02-23  0:08 ` falk at debian dot org
@ 2004-05-26  2:37 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26  2:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-25 01:55 -------
Fixed in 3.4.0 and nobody noticed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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


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

end of thread, other threads:[~2004-05-25  1:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-22 23:12 [Bug c/14249] New: internal compiler error: in push_reload, at reload.c:1315 karn at ka9q dot net
2004-02-22 23:42 ` [Bug c/14249] " karn at ka9q dot net
2004-02-23  0:08 ` falk at debian dot org
2004-05-26  2:37 ` [Bug rtl-optimization/14249] " pinskia 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).