Skip to content

Commit

Permalink
Detect more CPU features
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Sep 28, 2024
1 parent 57338f7 commit bb9fe7d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gcc/config/i386/i386-jit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ ix86_jit_register_target_info (void)
jit_add_target_info("target_feature", "fma4");
if (TARGET_XOP)
jit_add_target_info("target_feature", "xop");
if (TARGET_AVXIFMA)
jit_add_target_info("target_feature", "avxifma");
if (TARGET_AVXNECONVERT)
jit_add_target_info("target_feature", "avxneconvert");
if (TARGET_AVXVNNIINT8)
jit_add_target_info("target_feature", "avxvnniint8");
if (TARGET_AVXVNNIINT16)
jit_add_target_info("target_feature", "avxvnniint16");

// this is only enabled by choice in llvm, never by default - TODO determine if gcc enables it
// jit_add_target_info("target_feature", "sse-unaligned-mem");
Expand Down

0 comments on commit bb9fe7d

Please sign in to comment.