https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86538
Bug ID: 86538 Summary: GCC should define a macro to specify if LSE is enabled or not Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sje at gcc dot gnu.org Target Milestone: --- Right now there is no predefined macro in GCC that can tell if LSE is enable or not. If you compile with -march=armv8.1-a+lse or -march=armv8.1-a+nolse you get the same set of predefined macros and so there is no way a user can tell if they can/should use LSE instructions. Other features (CRYPTO, RDMA, SVE, AES, SHA, etc. do have macros associated with them. (See aarch64_update_cpp_builtins in gcc/config/aarch64/aarch64-c.c)