[Bug c/43406] New: __builtin_popcountll fails with -O0 and -mpopcnt

2010-03-17 Thread rbarreira at gmail dot com
Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rbarreira at gmail dot com GCC build triplet: i586-suse-linux GCC host triplet: i586-suse-linux GCC target

[Bug c/43406] __builtin_popcountll fails with -O0 and -mpopcnt

2010-03-17 Thread rbarreira at gmail dot com
--- Comment #1 from rbarreira at gmail dot com 2010-03-17 16:35 --- Note that if you use scanf (%llx, a) and input instead of having a hardcoded value for a, the bug happens both with -O3 and -O0. To sum up it seems that when the popcnt instruction is actually issued, it's