public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/36095]  New: Incorrect crc32 builtins for ia32
@ 2008-05-01  5:55 hjl dot tools at gmail dot com
  2008-05-01  6:05 ` [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit hjl dot tools at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-01  5:55 UTC (permalink / raw)
  To: gcc-bugs

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

bash-3.2$ cat x.c 
unsigned long long
foo (unsigned long long x, unsigned long long y)
{
  return __builtin_ia32_crc32di (x, y);
}
bash-3.2$ /usr/gcc-4.3/bin/gcc -m32 -msse4 -c x.c
x.c: In function ‘foo’:
x.c:5: error: unrecognizable insn:
(insn 6 5 7 3 x.c:4 (set (reg:DI 58 [ D.1635 ])
        (unspec:DI [
                (reg:DI 60)
                (mem/c/i:DI (plus:SI (reg/f:SI 53 virtual-incoming-args)
                        (const_int 8 [0x8])) [0 y+0 S8 A32])
            ] 143)) -1 (nil))
x.c:5: internal compiler error: in extract_insn, at recog.c:1990
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
bash-3.2$ 

__builtin_ia32_crc32di shouldn't be defined for 32bit.


-- 
           Summary: Incorrect crc32 builtins for ia32
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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


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

* [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit
  2008-05-01  5:55 [Bug target/36095] New: Incorrect crc32 builtins for ia32 hjl dot tools at gmail dot com
@ 2008-05-01  6:05 ` hjl dot tools at gmail dot com
  2008-05-01 13:21 ` hjl at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-01  6:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2008-05-01 06:04 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00011.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |05/msg00011.html
            Summary|__builtin_ia32_crc32di      |__builtin_ia32_crc32di
                   |shouldn't defined for ia32  |shouldn't defined in 32bit


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


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

* [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit
  2008-05-01  5:55 [Bug target/36095] New: Incorrect crc32 builtins for ia32 hjl dot tools at gmail dot com
  2008-05-01  6:05 ` [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit hjl dot tools at gmail dot com
@ 2008-05-01 13:21 ` hjl at gcc dot gnu dot org
  2008-05-01 16:14 ` hjl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hjl at gcc dot gnu dot org @ 2008-05-01 13:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl at gcc dot gnu dot org  2008-05-01 13:20 -------
Subject: Bug 36095

Author: hjl
Date: Thu May  1 13:20:04 2008
New Revision: 134852

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134852
Log:
2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>

        PR target/36095
        * config/i386/i386.c (bdesc_crc32): Remove OPTION_MASK_ISA_64BIT
        from IX86_BUILTIN_CRC32QI.  Add OPTION_MASK_ISA_64BIT to
        IX86_BUILTIN_CRC32DI.
        (ix86_init_mmx_sse_builtins): Add OPTION_MASK_ISA_64BIT to
        IX86_BUILTIN_CRC32DI.

        * doc/extend.texi: Correct __builtin_ia32_crc32di.

Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/config/i386/i386.c
    branches/gcc-4_3-branch/gcc/doc/extend.texi


-- 


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


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

* [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit
  2008-05-01  5:55 [Bug target/36095] New: Incorrect crc32 builtins for ia32 hjl dot tools at gmail dot com
  2008-05-01  6:05 ` [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit hjl dot tools at gmail dot com
  2008-05-01 13:21 ` hjl at gcc dot gnu dot org
@ 2008-05-01 16:14 ` hjl at gcc dot gnu dot org
  2008-05-01 16:43 ` hjl dot tools at gmail dot com
  2008-05-05  5:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hjl at gcc dot gnu dot org @ 2008-05-01 16:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl at gcc dot gnu dot org  2008-05-01 16:14 -------
Subject: Bug 36095

Author: hjl
Date: Thu May  1 16:13:23 2008
New Revision: 134861

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134861
Log:
2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>

        PR target/36095
        * config/i386/i386.c (bdesc_crc32): Removed.
        (ix86_expand_crc32): Likewise.
        (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
        V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
        V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
        UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
        UINT_FTYPE_UINT_UCHAR.
        (bdesc_args): Updated. Add crc32 builtins.
        (ix86_init_mmx_sse_builtins): Updated.
        (ix86_expand_args_builtin): Updated to support subreg.

        * doc/extend.texi: Correct __builtin_ia32_crc32di.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/doc/extend.texi


-- 


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


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

* [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit
  2008-05-01  5:55 [Bug target/36095] New: Incorrect crc32 builtins for ia32 hjl dot tools at gmail dot com
                   ` (2 preceding siblings ...)
  2008-05-01 16:14 ` hjl at gcc dot gnu dot org
@ 2008-05-01 16:43 ` hjl dot tools at gmail dot com
  2008-05-05  5:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-01 16:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hjl dot tools at gmail dot com  2008-05-01 16:43 -------
Fixed.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit
  2008-05-01  5:55 [Bug target/36095] New: Incorrect crc32 builtins for ia32 hjl dot tools at gmail dot com
                   ` (3 preceding siblings ...)
  2008-05-01 16:43 ` hjl dot tools at gmail dot com
@ 2008-05-05  5:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-05  5:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

end of thread, other threads:[~2008-05-05  5:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-01  5:55 [Bug target/36095] New: Incorrect crc32 builtins for ia32 hjl dot tools at gmail dot com
2008-05-01  6:05 ` [Bug target/36095] __builtin_ia32_crc32di shouldn't defined in 32bit hjl dot tools at gmail dot com
2008-05-01 13:21 ` hjl at gcc dot gnu dot org
2008-05-01 16:14 ` hjl at gcc dot gnu dot org
2008-05-01 16:43 ` hjl dot tools at gmail dot com
2008-05-05  5:30 ` 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).