public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23963] New: MMX intrinsics cause ICE in trunc_int_for_mode
@ 2005-09-19 11:07 sam at zoy dot org
  2005-09-19 14:32 ` [Bug target/23963] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: sam at zoy dot org @ 2005-09-19 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

The following code causes an ICE with any -O flag except -O0:

#include <mmintrin.h>
#include <stdint.h>
int main(int argc, char *argv[]) {
    __m64 a, b, c;
    a = b = c = (__m64)(uint64_t)argc; /* Load with arbitrary values */
    a = _mm_slli_pi16(a, 3);
    a = _mm_adds_pi16(a, b);
    c = _mm_srli_pi16(c, 8);
    c = _mm_slli_pi16(c, 3);
    b = _mm_adds_pi16(b, c);
    a = _mm_unpacklo_pi8(a, b);
    return (int)(uint64_t)a;
}

Resulting error is:

crashmmx.c: In function ‘main’:
crashmmx.c:16: internal compiler error: in trunc_int_for_mode, at explow.c:53

-- 
           Summary: MMX intrinsics cause ICE in trunc_int_for_mode
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sam at zoy dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i486-linux-gnu


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


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

* [Bug target/23963] MMX intrinsics cause ICE in trunc_int_for_mode
  2005-09-19 11:07 [Bug c/23963] New: MMX intrinsics cause ICE in trunc_int_for_mode sam at zoy dot org
@ 2005-09-19 14:32 ` pinskia at gcc dot gnu dot org
  2005-09-19 14:48 ` [Bug target/23963] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-19 14:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
           Keywords|                            |ice-on-valid-code, ssemmx


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


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

* [Bug target/23963] [4.0 Regression] MMX intrinsics cause ICE in trunc_int_for_mode
  2005-09-19 11:07 [Bug c/23963] New: MMX intrinsics cause ICE in trunc_int_for_mode sam at zoy dot org
  2005-09-19 14:32 ` [Bug target/23963] " pinskia at gcc dot gnu dot org
@ 2005-09-19 14:48 ` pinskia at gcc dot gnu dot org
  2005-09-20 22:28 ` sam at zoy dot org
  2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-19 14:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.2
      Known to work|                            |4.1.0
            Summary|MMX intrinsics cause ICE in |[4.0 Regression] MMX
                   |trunc_int_for_mode          |intrinsics cause ICE in
                   |                            |trunc_int_for_mode
   Target Milestone|---                         |4.0.2


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


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

* [Bug target/23963] [4.0 Regression] MMX intrinsics cause ICE in trunc_int_for_mode
  2005-09-19 11:07 [Bug c/23963] New: MMX intrinsics cause ICE in trunc_int_for_mode sam at zoy dot org
  2005-09-19 14:32 ` [Bug target/23963] " pinskia at gcc dot gnu dot org
  2005-09-19 14:48 ` [Bug target/23963] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-20 22:28 ` sam at zoy dot org
  2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: sam at zoy dot org @ 2005-09-20 22:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sam at zoy dot org  2005-09-20 22:28 -------
By the way, 4.1.0 fixes the bug on i486-linux-gnu, but on AMD64
(x86_64-linux-gnu) the problem is still present. Tested with a
20050904 snapshot.

-- 


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


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

* [Bug target/23963] [4.0 Regression] MMX intrinsics cause ICE in trunc_int_for_mode
  2005-09-19 11:07 [Bug c/23963] New: MMX intrinsics cause ICE in trunc_int_for_mode sam at zoy dot org
                   ` (2 preceding siblings ...)
  2005-09-20 22:28 ` sam at zoy dot org
@ 2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

* [Bug target/23963] [4.0 Regression] MMX intrinsics cause ICE in trunc_int_for_mode
       [not found] <bug-23963-6339@http.gcc.gnu.org/bugzilla/>
  2006-03-11  3:20 ` mmitchel at gcc dot gnu dot org
  2006-10-17 13:39 ` rguenth at gcc dot gnu dot org
@ 2007-02-03 15:43 ` gdr at gcc dot gnu dot org
  2 siblings, 0 replies; 8+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 15:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from gdr at gcc dot gnu dot org  2007-02-03 15:43 -------
Fixed in GCC-4.1.2 and higher.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.2


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


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

* [Bug target/23963] [4.0 Regression] MMX intrinsics cause ICE in trunc_int_for_mode
       [not found] <bug-23963-6339@http.gcc.gnu.org/bugzilla/>
  2006-03-11  3:20 ` mmitchel at gcc dot gnu dot org
@ 2006-10-17 13:39 ` rguenth at gcc dot gnu dot org
  2007-02-03 15:43 ` gdr at gcc dot gnu dot org
  2 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-17 13:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-10-17 13:39 -------
This works for me with 4.1.2.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|4.2.0 3.4.0                 |4.2.0 3.4.0 4.1.2
            Summary|[4.0/4.1 Regression] MMX    |[4.0 Regression] MMX
                   |intrinsics cause ICE in     |intrinsics cause ICE in
                   |trunc_int_for_mode          |trunc_int_for_mode


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


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

* [Bug target/23963] [4.0 Regression] MMX intrinsics cause ICE in trunc_int_for_mode
       [not found] <bug-23963-6339@http.gcc.gnu.org/bugzilla/>
@ 2006-03-11  3:20 ` mmitchel at gcc dot gnu dot org
  2006-10-17 13:39 ` rguenth at gcc dot gnu dot org
  2007-02-03 15:43 ` gdr at gcc dot gnu dot org
  2 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11  3:20 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.0.4


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


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

end of thread, other threads:[~2007-02-03 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-19 11:07 [Bug c/23963] New: MMX intrinsics cause ICE in trunc_int_for_mode sam at zoy dot org
2005-09-19 14:32 ` [Bug target/23963] " pinskia at gcc dot gnu dot org
2005-09-19 14:48 ` [Bug target/23963] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-09-20 22:28 ` sam at zoy dot org
2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-23963-6339@http.gcc.gnu.org/bugzilla/>
2006-03-11  3:20 ` mmitchel at gcc dot gnu dot org
2006-10-17 13:39 ` rguenth at gcc dot gnu dot org
2007-02-03 15:43 ` gdr 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).