Skip to content

Commit bb9fe7d

Browse files
committed
Detect more CPU features
1 parent 57338f7 commit bb9fe7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gcc/config/i386/i386-jit.cc

+8
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ ix86_jit_register_target_info (void)
191191
jit_add_target_info("target_feature", "fma4");
192192
if (TARGET_XOP)
193193
jit_add_target_info("target_feature", "xop");
194+
if (TARGET_AVXIFMA)
195+
jit_add_target_info("target_feature", "avxifma");
196+
if (TARGET_AVXNECONVERT)
197+
jit_add_target_info("target_feature", "avxneconvert");
198+
if (TARGET_AVXVNNIINT8)
199+
jit_add_target_info("target_feature", "avxvnniint8");
200+
if (TARGET_AVXVNNIINT16)
201+
jit_add_target_info("target_feature", "avxvnniint16");
194202

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

0 commit comments

Comments
 (0)