public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56024] New: ARM NEON polynomial types behave as if signed
@ 2013-01-18  9:28 Tim.Northover at arm dot com
  2013-01-18  9:47 ` [Bug c/56024] " rearnsha at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Tim.Northover at arm dot com @ 2013-01-18  9:28 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56024
           Summary: ARM NEON polynomial types behave as if signed
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Tim.Northover@arm.com


(Apologies for any broken conventions, this is my first GCC bug).

The ARM NEON intrinsic header arm_neon.h defines two scalar types poly8_t and
poly16_t. The existence of these types is at least implicit in the vget_lane
and vset_lane intrinsics. However on GCC they seem to be treated as "signed" in
some sense with extremely dodgy mathematical consequences. For example:

poly8_t p = 0x80;
poly16_t q = (poly16_t)p;

The polynomial "q" has the value 0xff80. This means that the cast has converted
the polynomial "x^7" into "x^15 + x^14 + ... + x^7".

This behaviour is also incompatible with the ARM compiler's implementation of
these types (they are typedefs from the obvious unsigned types there).


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

* [Bug c/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
@ 2013-01-18  9:47 ` rearnsha at gcc dot gnu.org
  2014-02-11 19:30 ` [Bug target/56024] " t.p.northover at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2013-01-18  9:47 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-eabi, arm-linux-gnueabi
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-01-18
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2013-01-18 09:47:29 UTC ---
This certainly doesn't seem to be what a user would reasonably expect.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
  2013-01-18  9:47 ` [Bug c/56024] " rearnsha at gcc dot gnu.org
@ 2014-02-11 19:30 ` t.p.northover at gmail dot com
  2014-02-11 19:31 ` StaffLeavers at arm dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: t.p.northover at gmail dot com @ 2014-02-11 19:30 UTC (permalink / raw)
  To: gcc-bugs

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

Tim Northover <t.p.northover at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t.p.northover at gmail dot com

--- Comment #2 from Tim Northover <t.p.northover at gmail dot com> ---
Are there any plans to fix this soon? It's become relevant again on the Clang
mailing list. 

We don't want to switch to a sane type if GCC decides sanity is less important
than ABI-compatibility, but every so often it causes someone extra work to
handle the discrepancy.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
  2013-01-18  9:47 ` [Bug c/56024] " rearnsha at gcc dot gnu.org
  2014-02-11 19:30 ` [Bug target/56024] " t.p.northover at gmail dot com
@ 2014-02-11 19:31 ` StaffLeavers at arm dot com
  2014-02-11 19:31 ` StaffLeavers at arm dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: StaffLeavers at arm dot com @ 2014-02-11 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from StaffLeavers at arm dot com ---
tim.northover no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
                   ` (2 preceding siblings ...)
  2014-02-11 19:31 ` StaffLeavers at arm dot com
@ 2014-02-11 19:31 ` StaffLeavers at arm dot com
  2014-02-11 19:32 ` StaffLeavers at arm dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: StaffLeavers at arm dot com @ 2014-02-11 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from StaffLeavers at arm dot com ---
tim.northover no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
                   ` (3 preceding siblings ...)
  2014-02-11 19:31 ` StaffLeavers at arm dot com
@ 2014-02-11 19:32 ` StaffLeavers at arm dot com
  2014-02-11 19:33 ` StaffLeavers at arm dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: StaffLeavers at arm dot com @ 2014-02-11 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from StaffLeavers at arm dot com ---
tim.northover no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
                   ` (4 preceding siblings ...)
  2014-02-11 19:32 ` StaffLeavers at arm dot com
@ 2014-02-11 19:33 ` StaffLeavers at arm dot com
  2014-02-11 19:33 ` StaffLeavers at arm dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: StaffLeavers at arm dot com @ 2014-02-11 19:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from StaffLeavers at arm dot com ---
tim.northover no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
                   ` (5 preceding siblings ...)
  2014-02-11 19:33 ` StaffLeavers at arm dot com
@ 2014-02-11 19:33 ` StaffLeavers at arm dot com
  2014-02-11 19:34 ` StaffLeavers at arm dot com
  2014-02-11 19:36 ` t.p.northover at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: StaffLeavers at arm dot com @ 2014-02-11 19:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from StaffLeavers at arm dot com ---
tim.northover no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
                   ` (6 preceding siblings ...)
  2014-02-11 19:33 ` StaffLeavers at arm dot com
@ 2014-02-11 19:34 ` StaffLeavers at arm dot com
  2014-02-11 19:36 ` t.p.northover at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: StaffLeavers at arm dot com @ 2014-02-11 19:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from StaffLeavers at arm dot com ---
tim.northover no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/56024] ARM NEON polynomial types behave as if signed
  2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
                   ` (7 preceding siblings ...)
  2014-02-11 19:34 ` StaffLeavers at arm dot com
@ 2014-02-11 19:36 ` t.p.northover at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: t.p.northover at gmail dot com @ 2014-02-11 19:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Tim Northover <t.p.northover at gmail dot com> ---
Yay for infinite e-mail loops! Very sorry about that, it should be fixed now.


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

end of thread, other threads:[~2014-02-11 19:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18  9:28 [Bug c/56024] New: ARM NEON polynomial types behave as if signed Tim.Northover at arm dot com
2013-01-18  9:47 ` [Bug c/56024] " rearnsha at gcc dot gnu.org
2014-02-11 19:30 ` [Bug target/56024] " t.p.northover at gmail dot com
2014-02-11 19:31 ` StaffLeavers at arm dot com
2014-02-11 19:31 ` StaffLeavers at arm dot com
2014-02-11 19:32 ` StaffLeavers at arm dot com
2014-02-11 19:33 ` StaffLeavers at arm dot com
2014-02-11 19:33 ` StaffLeavers at arm dot com
2014-02-11 19:34 ` StaffLeavers at arm dot com
2014-02-11 19:36 ` t.p.northover 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).