File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,9 @@ bool X86TargetInfo::initFeatureMap(
122
122
std::vector<std::string> UpdatedAVX10FeaturesVec;
123
123
enum { FE_NOSET = -1 , FE_FALSE, FE_TRUE };
124
124
int HasEVEX512 = FE_NOSET;
125
- bool HasAVX512F = false ;
126
- bool HasAVX10 = false ;
127
- bool HasAVX10_512 = false ;
125
+ bool HasAVX512F = Features. lookup ( " avx512f " ) ;
126
+ bool HasAVX10 = Features. lookup ( " avx10.1-256 " ) ;
127
+ bool HasAVX10_512 = Features. lookup ( " avx10.1-512 " ) ;
128
128
std::string LastAVX10;
129
129
std::string LastAVX512;
130
130
for (const auto &Feature : FeaturesVec) {
Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -triple x86_64 -ffreestanding -target-cpu cannonlake -emit-llvm < %s | FileCheck %s
2
+
3
+ #include <immintrin.h>
4
+
5
+ int main (int argc , char * * argv ) {
6
+ // CHECK-LABEL: @main
7
+ // CHECK: @llvm.masked.load.v4i64.p0
8
+ __m256i ptrs = _mm256_maskz_loadu_epi64 (0 , argv );
9
+ return 0 ;
10
+ }
You can’t perform that action at this time.
0 commit comments