https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84483
Bug ID: 84483 Summary: powerpc sub-optimal code generation - conditional relative branch to and over blr Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: npiggin at gmail dot com Target Milestone: --- Created attachment 43472 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43472&action=edit test case with description in comment at the top I have attached a test case derived loosely from Linux spinlock code that has two possible types of sub-optimal code generation with relative branches used to execute or avoid a blr. Conditional blr might be used instead.