https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101685
Bug ID: 101685
Summary: -march=amdfam10 -mno-lzcnt Defines __LZCNT__
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
r12-36 broke -march=amdfam10 -mno-lzcnt:
if (((processor_alias_table[i].flags & PTA_ABM) != 0)
&& !TARGET_EXPLICIT_ABM_P (opts))
{
SET_TARGET_LZCNT (opts);
SET_TARGET_POPCNT (opts);
}
Most likely also broke -mno-popcnt too.