[Bug target/71777] __builtin_cpu_supports() doesn't work on powerpc

2016-07-07 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71777 Peter Bergner changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #4 from Peter Bergner

[Bug target/71777] __builtin_cpu_supports() doesn't work on powerpc

2016-07-06 Thread mathieu.malaterre at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71777 Mathieu Malaterre changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/71777] __builtin_cpu_supports() doesn't work on powerpc

2016-07-06 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71777 --- Comment #2 from Peter Bergner --- FYI, this is the output of your demo code on my POWER8 LE Ubuntu 16.04 system: bergner@ampere:~$ gcc demo.c bergner@ampere:~$ ./a.out 1 -- 1 2 3 4 6 9 10 11 14 15 16 17 19 20 23 24 25 27 29 31 33 34 36 37

[Bug target/71777] __builtin_cpu_supports() doesn't work on powerpc

2016-07-06 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71777 --- Comment #1 from Peter Bergner --- The documentation doesn't mention this (and I should probably add it), but the __builtin_cpu_is() and __builtin_cpu_supports() builtins rely on support from glibc (glibc 2.23 and later to be exact). If you b