https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122446
Bug ID: 122446
Summary: Bogus register names when targeting AMX
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mose at gnu dot org
Target Milestone: ---
Created attachment 62647
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62647&action=edit
Reproducer for the bug
Compile the attached file with `g++ -mamx-tile -mamx-int8 -O2 bug.cxx`, the
generated assembly looks like
tileloadd %tmm4, [rax+r9*1]
tileloadd %tmm5, [rcx+r10*1]
tdpbssd %tmmhello, %tmmcrazy, %tmmgcc
First reported at
https://github.com/google/XNNPACK/issues/9000#issuecomment-3449425946,
reproducer on Compiler Explorer: https://godbolt.org/z/bf654voMb