[Bug target/50583] Many __sync_XXX builtin functions are incorrect

2011-09-30 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50583 --- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2011-09-30 16:57:14 UTC --- We have 2 choices: 1. Update document of `TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)' `TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)' `TYPE

[Bug target/50583] Many __sync_XXX builtin functions are incorrect

2011-09-30 Thread amacleod at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50583 Andrew Macleod amacleod at redhat dot com changed: What|Removed |Added CC||amacleod at

[Bug target/50583] Many __sync_XXX builtin functions are incorrect

2011-09-30 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50583 --- Comment #3 from H.J. Lu hjl.tools at gmail dot com 2011-09-30 18:37:42 UTC --- The same problem with `TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)' `TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)' `TYPE __sync_or_and_fetch

[Bug target/50583] Many __sync_XXX builtin functions are incorrect

2011-09-30 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50583 --- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2011-09-30 18:47:21 UTC --- I guess it is OK.

[Bug target/50583] Many __sync_XXX builtin functions are incorrect

2011-09-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50583 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/50583] Many __sync_XXX builtin functions are incorrect

2011-09-30 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50583 --- Comment #6 from Andi Kleen andi-gcc at firstfloor dot org 2011-09-30 23:35:29 UTC --- Can't say I'm a fan of adding such a heavy weight sequence into an intrinsic. Maybe better to simply leave out the intrinsics that cannot be implemented