[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Thiago Macieira changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Commen

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 --- Comment #2 from Andrew Pinski --- #include #if defined(__INTEL_COMPILER) || defined(_MSC_VER) auto __tzcnt_u16(unsigned /*short*/ value) { #ifdef Q_CC_INTEL unsigned short res; asm("tzcntw %w1, %0" : "=r" (res) : "r" (value));

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-20 Ever confirmed|0

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2022-01-06 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 --- Comment #4 from Hongtao.liu --- Fixed in GCC12 by r12-6338

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2022-01-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---