We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d5c1e2 commit bad3b3eCopy full SHA for bad3b3e
1 file changed
test/correctness/strict_fma.cpp
@@ -94,6 +94,15 @@ int test() {
94
}
95
96
int main(int argc, char **argv) {
97
+ Target t = get_jit_target_from_environment();
98
+
99
+ // LLVM < 22 cannot widen non-native vector stores for SVE, hitting
100
+ // "LLVM ERROR: Unable to widen vector store". Fixed in LLVM 22 by:
101
+ // https://github.com/llvm/llvm-project/commit/8cf43aebc67b (PR #160515)
102
+ if (Internal::get_llvm_version() < 220 && t.has_feature(Target::SVE2)) {
103
+ printf("[SKIP] LLVM <22 cannot widen vector stores for SVE scalable types.\n");
104
+ return 0;
105
+ }
106
107
if (test<double, uint64_t>() ||
108
test<float, uint32_t>() ||
0 commit comments