https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111828
Bug ID: 111828 Summary: rs6000: Parse inline asm string to figure out it requires HTM feature or not. Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org CC: jan.wassenberg at gmail dot com, john_platts at hotmail dot com, linkw at gcc dot gnu.org, malat at debian dot org Depends on: 111366 Target Milestone: --- Target: powerpc64le Currently as the discussion in PR111366 we simply make the assumption that all inline asm strings are possible to adopt HTM feature and consider it as possible as conservative so that set HTM flag. Technically speaking we are able to parse the inline asm string and figure out it's HTM related or not. Excepting for the HTM specific instructions like .tbegin etc., we also need to take care of those special registers related to HTM feature. +++ This bug was initially created as a clone of Bug #111366 +++ Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111366 [Bug 111366] error: inlining failed in call to 'always_inline' 'hwy::PreventElision<int&>(int&)void': target specific option mismatch