Skip to content

Commit 44501d8

Browse files
committed
Resolve compile fail without SSE2
1 parent 54b3ba2 commit 44501d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Headers/amxavx512intrin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#ifndef __AMX_AVX512INTRIN_H
1414
#define __AMX_AVX512INTRIN_H
15-
#ifdef __x86_64__
15+
#if defined(__x86_64__) && defined(__SSE2__)
1616

1717
#define __DEFAULT_FN_ATTRS_AVX512 \
1818
__attribute__((__always_inline__, __nodebug__, \
@@ -378,5 +378,5 @@ static __m512i __tile_movrow(__tile1024i src0, unsigned src1) {
378378
return (__m512i)_tile_movrow_internal(src0.row, src0.col, src0.tile, src1);
379379
}
380380

381-
#endif // __x86_64__
381+
#endif // __x86_64__ && __SSE2__
382382
#endif // __AMX_AVX512INTRIN_H

0 commit comments

Comments
 (0)