[llvm] [X86] Assign AVX10_1 feature priority to align with gcc. (PR #94557)

Timm Baeder via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 23:39:54 PDT 2024


tbaederr wrote:

I think this broke several codegen/attr tests with assertions enabled:

```
FAIL: Clang :: CodeGen/unique-internal-linkage-names.cpp (11739 of 22485)
******************** TEST 'Clang :: CodeGen/unique-internal-linkage-names.cpp' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 3: /root/llvm-project/build/bin/clang -cc1 -internal-isystem /root/llvm-project/build/lib/clang/19/include -nostdsysteminc -triple x86_64-linux-gnu -x c++ -emit-llvm -o - < /root/llvm-project/clang/test/CodeGen/unique-internal-linkage-names.cpp | /root/llvm-project/build/bin/FileCheck /root/llvm-project/clang/test/CodeGen/unique-internal-linkage-names.cpp --check-prefix=PLAIN
+ /root/llvm-project/build/bin/clang -cc1 -internal-isystem /root/llvm-project/build/lib/clang/19/include -nostdsysteminc -triple x86_64-linux-gnu -x c++ -emit-llvm -o -
+ /root/llvm-project/build/bin/FileCheck /root/llvm-project/clang/test/CodeGen/unique-internal-linkage-names.cpp --check-prefix=PLAIN
clang: /root/llvm-project/llvm/lib/TargetParser/X86TargetParser.cpp:763: unsigned int llvm::X86::getFeaturePriority(ProcessorFeatures): Assertion `std::is_permutation(HelperList.begin(), HelperList.end(), std::begin(Priorities), std::end(Priorities)) && "Priorities don't form consecutive range!"' failed.
```

https://github.com/llvm/llvm-project/pull/94557


More information about the llvm-commits mailing list