public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/36224]  New: vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction
@ 2008-05-12 20:00 gnu at the-meissners dot org
  2008-05-12 20:01 ` [Bug target/36224] " gnu at the-meissners dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gnu at the-meissners dot org @ 2008-05-12 20:00 UTC (permalink / raw)
  To: gcc-bugs

The vec_widen_smult_{hi,lo}_v4si functions are incorrect, in that they generate
the pmuludq instruction, which does a 32x32->64 unsigned multiply.  For
example, multiplying -13 * 15 = gives 64424509245 with the current code, when
it should give -195.

The sse5 instructions pmacsdqh and pmacsdql could do this instruction, but not
anything in the standard sse2 set.


-- 
           Summary: vec_widen_smult_{hi,lo}_v4si generates pmuludq
                    instruction
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gnu at the-meissners dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug target/36224] vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction
  2008-05-12 20:00 [Bug target/36224] New: vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction gnu at the-meissners dot org
@ 2008-05-12 20:01 ` gnu at the-meissners dot org
  2008-05-20  6:40 ` ubizjak at gmail dot com
  2008-05-20  6:42 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: gnu at the-meissners dot org @ 2008-05-12 20:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from gnu at the-meissners dot org  2008-05-12 20:00 -------
Created an attachment (id=15631)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15631&action=view)
Test case for bug 36224


-- 


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


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

* [Bug target/36224] vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction
  2008-05-12 20:00 [Bug target/36224] New: vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction gnu at the-meissners dot org
  2008-05-12 20:01 ` [Bug target/36224] " gnu at the-meissners dot org
@ 2008-05-20  6:40 ` ubizjak at gmail dot com
  2008-05-20  6:42 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2008-05-20  6:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ubizjak at gmail dot com  2008-05-20 06:40 -------
Fixed by:

Author: meissner
Date: Wed May 14 18:02:56 2008
New Revision: 135302

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135302
Log:
Fix pr36224

Added:
    trunk/gcc/testsuite/gcc.dg/pr36224.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog


and

Author: meissner
Date: Mon May 19 20:03:48 2008
New Revision: 135580

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135580
Log:
Backport fix for 36224

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr36224.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/config/i386/sse.md
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog

BTW: Please copy ChangeLog entry (without author line) into the commit text in
order to automatically update Bugzilla PR.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-05-20 06:40:14
               date|                            |


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


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

* [Bug target/36224] vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction
  2008-05-12 20:00 [Bug target/36224] New: vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction gnu at the-meissners dot org
  2008-05-12 20:01 ` [Bug target/36224] " gnu at the-meissners dot org
  2008-05-20  6:40 ` ubizjak at gmail dot com
@ 2008-05-20  6:42 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2008-05-20  6:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ubizjak at gmail dot com  2008-05-20 06:41 -------
Fixed.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |05/msg00842.html
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.1


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


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

end of thread, other threads:[~2008-05-20  6:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-12 20:00 [Bug target/36224] New: vec_widen_smult_{hi,lo}_v4si generates pmuludq instruction gnu at the-meissners dot org
2008-05-12 20:01 ` [Bug target/36224] " gnu at the-meissners dot org
2008-05-20  6:40 ` ubizjak at gmail dot com
2008-05-20  6:42 ` ubizjak at gmail dot com

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