https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116057
Bug ID: 116057 Summary: Miscompilation of nodejs with -ftree-slp-vectorize on arm64 and probably others Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: fnkl.kernel at gmail dot com Target Milestone: --- Created attachment 58741 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58741&action=edit Reduced example. Attempting to compile the attached file with "g++ -pthread -O1 -ftree-slp-vectorize -pipe -std=gnu++20 -fno-stack-protector" on arm64 results in a miscompilation where ObjectWriteToReadOnlyProperty returns 1 in x0 on Throw() path. Removing '-ftree-slp-vectorize' results in correct output. This is a reduced example that was extraced from nodejs code. On arm64 specifically, this is a regression caused by 33c2b70dbabc02788caabcbc66b7baeafeb95bcf, however as that commit only changes costs, the bug is most likely somewhere else.