Skip to content

Commit bad3b3e

Browse files
committed
Skip strict_fma.cpp on SVE2
1 parent 1d5c1e2 commit bad3b3e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/correctness/strict_fma.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ int test() {
9494
}
9595

9696
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+
}
97106

98107
if (test<double, uint64_t>() ||
99108
test<float, uint32_t>() ||

0 commit comments

Comments
 (0)