public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59874] Missing builtin (__builtin_clzs) when compiling with g++
[not found] <bug-59874-4@http.gcc.gnu.org/bugzilla/>
@ 2014-01-20 9:30 ` rguenth at gcc dot gnu.org
2023-12-01 4:44 ` sjames at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-20 9:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59874
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-*-*
Component|c++ |target
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It seems
#pragma GCC push_options
#pragma GCC target("lzcnt")
from lzcntintrin.h doesn't work with C++?
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/59874] Missing builtin (__builtin_clzs) when compiling with g++
[not found] <bug-59874-4@http.gcc.gnu.org/bugzilla/>
2014-01-20 9:30 ` [Bug target/59874] Missing builtin (__builtin_clzs) when compiling with g++ rguenth at gcc dot gnu.org
@ 2023-12-01 4:44 ` sjames at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-01 4:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59874
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjames at gcc dot gnu.org
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=112789
--- Comment #18 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Allan Jensen from comment #8)
> Thanks that looks good. I will test it when I have a chance. I am changing
> the Qt sources to not assume the presence of __builtin_clzs when __BMI__ is
> defined. It can use __builtin_clz() and __builtin_ctz()-16U instead, but for
> general compatibility it is nice that GCC also keeps it around.
>
> Note, it would be even better though if GCC could support the short forms as
> generic builtins. That changes the semantics slightly, but they are named so
> similarly to the clz, clzl and clzll it would be easy to assume they also
> are generics, with similar semantics, and can work across all targets.
>
GCC 14 will have __builtin_clzg, if you want to start using that:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112789#c4.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-01 4:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-59874-4@http.gcc.gnu.org/bugzilla/>
2014-01-20 9:30 ` [Bug target/59874] Missing builtin (__builtin_clzs) when compiling with g++ rguenth at gcc dot gnu.org
2023-12-01 4:44 ` sjames at gcc dot gnu.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).