public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/5382: __builtin_ia32_pmulhuw seems unknown to compiler
@ 2002-01-14 12:46 David.Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David.Kastrup @ 2002-01-14 12:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5382
>Category:       target
>Synopsis:       __builtin_ia32_pmulhuw seems unknown to compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 14 12:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Myself
>Release:        gcc version 3.1 20020106 (Red Hat Linux Rawhide 3.1-0.17)
>Organization:
>Environment:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
>Description:
Strangely, while using -mmmx, __builtin_ia32_pmulhuw is unknown to the compiler, while, for example, __builtin_ia32_pmulhw seems known.  Anyhow, as you can see from the generated code, the compiler fails to emit an emmx instruction at the end of the routine, leading to possible floating point errors after return.
>How-To-Repeat:
gcc -mmmx -O3 -S test.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.tgz"

H4sIAB5DQzwAA+1WbW/bNhDOV+lXEGkH2IVpyC91ghYBViRZEyBtijbrhw2DQEkniwtJcSSVOCv6
33ek5MQBig3F0A4Y+PiDjvdG8uEdTQfWTcu9b4pslmWr5XIvQ8yWq+Hbjz3mzw/2soPlPFstVtnz
OfpjQLZHsm+7rB6ddcwQslex67/1W7fgGvgeK/qu4MoRybgajT+l7k5DBTXxuptlw0meM+cMLzoH
eU5GI9lWQEYfl2fn4/H4ZRp8NhtyRJ6NvPxs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6s0YapCbzpbbTP2EzyM+2dU4mN2Iyd9eMjc23x6q8fbxDuW
xwbfT8mXn2FpIgDbLE2Q/3R6UcMM6ZhaLK2eqqCiA4OhSpL918fHL8gIr93x1931+/GlFxERERER
ERERERERERERERERERERERERERHx9fgL9IpGswAoAAA=


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

* Re: target/5382: __builtin_ia32_pmulhuw seems unknown to compiler
@ 2002-01-14 19:04 rodrigc
  0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2002-01-14 19:04 UTC (permalink / raw)
  To: David.Kastrup, gcc-bugs, gcc-prs, nobody

Synopsis: __builtin_ia32_pmulhuw seems unknown to compiler

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 14 19:04:52 2002
State-Changed-Why:
    Duplicate of PR 5381.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5382


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

end of thread, other threads:[~2002-01-15  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-14 12:46 target/5382: __builtin_ia32_pmulhuw seems unknown to compiler David.Kastrup
2002-01-14 19:04 rodrigc

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