This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/86538] New: GCC should define a macro to specify if LSE is enabled or not


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]