public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65881] New: no documentation of __uint128_t
@ 2015-04-25  4:30 shawn at churchofgit dot com
  2015-04-25  5:50 ` [Bug c/65881] " glisse at gcc dot gnu.org
  2015-04-25 18:03 ` shawn at churchofgit dot com
  0 siblings, 2 replies; 3+ messages in thread
From: shawn at churchofgit dot com @ 2015-04-25  4:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65881

            Bug ID: 65881
           Summary: no documentation of __uint128_t
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shawn at churchofgit dot com

gcc on x86_64 recognizes __uint128_t, but this is not documented along with
__int128, also there is no warning when a target does not support __uint128_t,
like there is with __int128:

triangle64.c:32:1: error: ‘__int128’ is not supported for this target

A unsigned 128-bit type is needed because it has defined integer overflow.
>From gcc-bugs-return-484599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 25 05:46:12 2015
Return-Path: <gcc-bugs-return-484599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125112 invoked by alias); 25 Apr 2015 05:46:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125075 invoked by uid 48); 25 Apr 2015 05:46:07 -0000
From: "jamrial at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65871] bzhi builtin/intrinsic wrongly assumes bzhi instruction doesn't set the ZF flag
Date: Sat, 25 Apr 2015 05:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamrial at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65871-4-wGL82QUr3g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65871-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65871-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg02151.txt.bz2
Content-length: 455

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide871

--- Comment #1 from James Almer <jamrial at gmail dot com> ---
The same apparently happens with bextr, blsi, blsr, and most (if not all) of
AMD's tbm instructions. They set the ZF flag but gcc still generates a test
instruction.

http://www.felixcloutier.com/x86/BEXTR.html
http://www.felixcloutier.com/x86/BLSI.html
http://www.felixcloutier.com/x86/BLSR.html
http://support.amd.com/TechDocs/24594.pdf


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

* [Bug c/65881] no documentation of __uint128_t
  2015-04-25  4:30 [Bug c/65881] New: no documentation of __uint128_t shawn at churchofgit dot com
@ 2015-04-25  5:50 ` glisse at gcc dot gnu.org
  2015-04-25 18:03 ` shawn at churchofgit dot com
  1 sibling, 0 replies; 3+ messages in thread
From: glisse at gcc dot gnu.org @ 2015-04-25  5:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65881

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Shawn Landden from comment #0)
> gcc on x86_64 recognizes __uint128_t, but this is not documented along with
> __int128, also there is no warning when a target does not support
> __uint128_t, like there is with __int128:
> 
> triangle64.c:32:1: error: ‘__int128’ is not supported for this target

e.c:2:3: error: unknown type name ‘__uint128_t’
   __uint128_t i=42;
   ^

> A unsigned 128-bit type is needed because it has defined integer overflow.

https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html
That type is called "unsigned __int128". The other aliases are only for
compatibility or legacy.
>From gcc-bugs-return-484601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 25 05:55:23 2015
Return-Path: <gcc-bugs-return-484601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1609 invoked by alias); 25 Apr 2015 05:55:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1584 invoked by uid 48); 25 Apr 2015 05:55:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65880] [5/6 Regression] Member function issue with argument "pointer to const array of member function pointers"
Date: Sat, 25 Apr 2015 05:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-65880-4-DBvSHQYi1V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65880-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65880-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg02153.txt.bz2
Content-length: 868

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide880

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-04-25
            Summary|Member function issue with  |[5/6 Regression] Member
                   |argument "pointer to const  |function issue with
                   |array of member function    |argument "pointer to const
                   |pointers"                   |array of member function
                   |                            |pointers"
     Ever confirmed|0                           |1
      Known to fail|                            |6.0


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

* [Bug c/65881] no documentation of __uint128_t
  2015-04-25  4:30 [Bug c/65881] New: no documentation of __uint128_t shawn at churchofgit dot com
  2015-04-25  5:50 ` [Bug c/65881] " glisse at gcc dot gnu.org
@ 2015-04-25 18:03 ` shawn at churchofgit dot com
  1 sibling, 0 replies; 3+ messages in thread
From: shawn at churchofgit dot com @ 2015-04-25 18:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65881

Shawn Landden <shawn at churchofgit dot com> changed:

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

--- Comment #2 from Shawn Landden <shawn at churchofgit dot com> ---
> unsigned __int128


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

end of thread, other threads:[~2015-04-25 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-25  4:30 [Bug c/65881] New: no documentation of __uint128_t shawn at churchofgit dot com
2015-04-25  5:50 ` [Bug c/65881] " glisse at gcc dot gnu.org
2015-04-25 18:03 ` shawn at churchofgit 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).