This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/86538] New: GCC should define a macro to specify if LSE is enabled or not
- From: "sje at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jul 2018 15:57:13 +0000
- Subject: [Bug target/86538] New: GCC should define a macro to specify if LSE is enabled or not
- Auto-submitted: auto-generated
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)