public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/33597] Internal compiler error while compiling libswcale from ffmpeg
Date: Sun, 30 Sep 2007 10:03:00 -0000	[thread overview]
Message-ID: <20070930100340.10892.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33597-10490@http.gcc.gnu.org/bugzilla/>

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



------- Comment #4 from ubizjak at gmail dot com  2007-09-30 10:03 -------
segfaults with -ftree-vectorize in SLP.

reduced testcase:

--cut here--
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;

void
rgb15to24_C (const uint8_t * src, uint8_t * dst, long src_size)
{
  const uint16_t *end;
  const uint16_t *s = (uint16_t *)src;
  uint8_t *d = (uint8_t *)dst;

  end = s + src_size/2;
  while (s < end)
    {
      uint16_t bgr = *s++;

      *d++ = (bgr&0x1F)<<3;
      *d++ = (bgr&0x3E0)>>2;
      *d++ = (bgr&0x7C00)>>7;
    }
}
--cut here--

gcc -O2 -ftree-vectorize -msse2:

t.c: In function �rgb15to24_C�:
t.c:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Program received signal SIGSEGV, Segmentation fault.
0x0000000000a94d24 in vect_build_slp_tree (loop_vinfo=0x1039cc0, 
    node=0x7fffb8b97da0, group_size=3, slp_impossible=0x7fffb8b97e3f "", 
    inside_cost=0x7fffb8b97e38, outside_cost=0x7fffb8b97e34, 
    ncopies_for_cost=3) at ../../gcc-svn/trunk/gcc/tree-vect-analyze.c:2700
2700                  if (!VECTOR_MODE_P (optab_op2_mode))


#0  0x0000000000a94d24 in vect_build_slp_tree (loop_vinfo=0x1039cc0, 
    node=0x7fffb8b97da0, group_size=3, slp_impossible=0x7fffb8b97e3f "", 
    inside_cost=0x7fffb8b97e38, outside_cost=0x7fffb8b97e34, 
    ncopies_for_cost=3) at ../../gcc-svn/trunk/gcc/tree-vect-analyze.c:2700
#1  0x0000000000a94f73 in vect_build_slp_tree (loop_vinfo=0x1039cc0, 
    node=0x7fffb8b97e28, group_size=3, slp_impossible=0x7fffb8b97e3f "", 
    inside_cost=0x7fffb8b97e38, outside_cost=0x7fffb8b97e34, 
    ncopies_for_cost=3) at ../../gcc-svn/trunk/gcc/tree-vect-analyze.c:2870
#2  0x0000000000a955e3 in vect_analyze_slp_instance (loop_vinfo=0x1039cc0, 
    stmt=<value optimized out>)
    at ../../gcc-svn/trunk/gcc/tree-vect-analyze.c:3000
#3  0x0000000000a993e0 in vect_analyze_loop (loop=<value optimized out>)
    at ../../gcc-svn/trunk/gcc/tree-vect-analyze.c:3045
#4  0x00000000007f82ce in vectorize_loops ()
    at ../../gcc-svn/trunk/gcc/tree-vectorizer.c:2501

Confirmed on x86_64 and i686/sse2.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-30 10:03:40
               date|                            |


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


  parent reply	other threads:[~2007-09-30 10:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-29 22:57 [Bug c/33597] New: " ismail at pardus dot org dot tr
2007-09-29 22:58 ` [Bug c/33597] " ismail at pardus dot org dot tr
2007-09-29 23:00 ` [Bug middle-end/33597] " pinskia at gcc dot gnu dot org
2007-09-29 23:03 ` ismail at pardus dot org dot tr
2007-09-30 10:03 ` ubizjak at gmail dot com [this message]
2007-09-30 10:29 ` ubizjak at gmail dot com
2007-09-30 10:37 ` irar at il dot ibm dot com
2007-09-30 11:30 ` [Bug middle-end/33597] Internal compiler error while compiling libswscale " ismail at pardus dot org dot tr
2007-09-30 12:45 ` uros at gcc dot gnu dot org
2007-09-30 12:47 ` [Bug tree-optimization/33597] " ubizjak at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070930100340.10892.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).