https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124292
Bug ID: 124292
Summary: target_clone for apx does not work
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: andi-gcc at firstfloor dot org
Target Milestone: ---
Target: x86_64-linux
__attribute__((target_clones("default,apxf")))
int foo(int i)
{
return ++i;
}
% gcc ta.c
ta.c: In function ‘foo.resolver’:
ta.c:2:5: error: ISA ‘apxf’ is not supported in ‘target’ attribute, use ‘arch=’
syntax
2 | int foo(int i)
| ^~~
When I change it to arch=apxf (which makes no sense since it isn't an
architecture) it gives
ta.c:2:5: error: bad value ‘apxf’ for ‘target("arch=")’ attribute
2 | int foo(int i)
| ^~~
ta.c:2:5: note: valid arguments to ‘target("arch=")’ attribute are: nocona, ...