[Bug target/126973] Worse X86 codegen for arbitrary __builtin_clzg/__builtin_ctzg compared to clang.
"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126973 --- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> --- I am 99% the problem is clang does not implement the ABI correctly. ctzg_uN is correct for GCC while for clang, there is an assumption that unsigned short/unsigned _BitInt(16) is zero extended which is not a valid assumption.