public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "suckfish at ihug dot co dot nz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/37809] [4.2/4.3/4.4 Regression] Incorrect code with MMX right shift __builtin_ia32_psradi
Date: Fri, 17 Oct 2008 22:20:00 -0000	[thread overview]
Message-ID: <20081017221856.3930.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37809-2018@http.gcc.gnu.org/bugzilla/>

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



------- Comment #6 from suckfish at ihug dot co dot nz  2008-10-17 22:18 -------
Pleasantly, my fears that this was just the tip of the iceburg seems to be
wrong.  Writing some test cases, found another bug involving a shift, and also
the ICE below [fixed by some combination of change above and 38707 fix.]

Will fix the remaining case & post patches to gcc-patches list.

#include <mmintrin.h>
typedef int v2si __attribute__ ((vector_size (8)));
v2si shiftU (v2si y)
{
    return _m_psrldi (_m_psrldi (y, 0), 0);
}

$ gcc -O shift2.c
shift2.c: In function ‘shiftU’:
shift2.c:6: internal compiler error: in trunc_int_for_mode, at explow.c:55
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cckqI2oC.out file, please attach this to
your bugreport.


-- 


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


  parent reply	other threads:[~2008-10-17 22:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-12  2:39 [Bug c/37809] New: " suckfish at ihug dot co dot nz
2008-10-12  2:49 ` [Bug c/37809] " suckfish at ihug dot co dot nz
2008-10-12 10:37 ` [Bug target/37809] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-10-12 19:01 ` ubizjak at gmail dot com
2008-10-14  7:19 ` suckfish at ihug dot co dot nz
2008-10-17  6:37 ` ubizjak at gmail dot com
2008-10-17 22:20 ` suckfish at ihug dot co dot nz [this message]
2008-10-22  3:31 ` [Bug middle-end/37809] " mmitchel at gcc dot gnu dot org
2008-11-10  7:45 ` suckfish at ihug dot co dot nz
2008-11-10  9:11 ` uros at gcc dot gnu dot org
2008-11-10 10:46 ` [Bug middle-end/37809] [4.2/4.3 " uros at gcc dot gnu dot org
2008-11-10 12:23 ` uros at gcc dot gnu dot org
2008-11-10 12:25 ` ubizjak at gmail dot com
2009-04-29 15:21 ` pinskia at gcc dot gnu dot org

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