Skip to content

Commit 28ed1a3

Browse files
authored
Skip strict_fma.cpp on SVE2 (#8992)
* Skip strict_fma.cpp on SVE2 * Fix assertion language flagged in #8977
1 parent 1d5c1e2 commit 28ed1a3

File tree

10 files changed

+18
-9
lines changed

10 files changed

+18
-9
lines changed

test/autoschedulers/mullapudi2016/max_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int main(int argc, char **argv) {
134134
if (Internal::get_llvm_version() >= 210 &&
135135
Internal::get_llvm_version() < 220 &&
136136
get_jit_target_from_environment().has_feature(Target::SVE2)) {
137-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
137+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
138138
return 0;
139139
}
140140

test/correctness/align_bounds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc, char **argv) {
2929
if (Internal::get_llvm_version() >= 210 &&
3030
Internal::get_llvm_version() < 220 &&
3131
get_jit_target_from_environment().has_feature(Target::SVE2)) {
32-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
32+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
3333
return 0;
3434
}
3535

test/correctness/bound_small_allocations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main(int argc, char **argv) {
1616
if (Internal::get_llvm_version() >= 210 &&
1717
Internal::get_llvm_version() < 220 &&
1818
get_jit_target_from_environment().has_feature(Target::SVE2)) {
19-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
19+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
2020
return 0;
2121
}
2222

test/correctness/fit_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int main(int argc, char **argv) {
1313
if (Internal::get_llvm_version() >= 210 &&
1414
Internal::get_llvm_version() < 220 &&
1515
get_jit_target_from_environment().has_feature(Target::SVE2)) {
16-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
16+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
1717
return 0;
1818
}
1919

test/correctness/logical.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main(int argc, char **argv) {
1818
if (Internal::get_llvm_version() >= 210 &&
1919
Internal::get_llvm_version() < 220 &&
2020
get_jit_target_from_environment().has_feature(Target::SVE2)) {
21-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
21+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
2222
return 0;
2323
}
2424

test/correctness/predicated_store_load.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ int main(int argc, char **argv) {
493493
if (Internal::get_llvm_version() >= 210 &&
494494
Internal::get_llvm_version() < 220 &&
495495
t.has_feature(Target::SVE2)) {
496-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
496+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
497497
return 0;
498498
}
499499

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>() ||

test/correctness/truncated_pyramid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char **argv) {
1212
if (Internal::get_llvm_version() >= 210 &&
1313
Internal::get_llvm_version() < 220 &&
1414
get_jit_target_from_environment().has_feature(Target::SVE2)) {
15-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
15+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
1616
return 0;
1717
}
1818

test/correctness/vectorize_nested.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ int main(int argc, char **argv) {
283283
if (Internal::get_llvm_version() >= 210 &&
284284
Internal::get_llvm_version() < 220 &&
285285
get_jit_target_from_environment().has_feature(Target::SVE2)) {
286-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
286+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
287287
return 0;
288288
}
289289

test/performance/const_division.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ int main(int argc, char **argv) {
131131
if (Internal::get_llvm_version() >= 210 &&
132132
Internal::get_llvm_version() < 220 &&
133133
target.has_feature(Target::SVE2)) {
134-
printf("[SKIP] LLVM 21 has known getFixedValue() assertions on SVE scalable types.\n");
134+
printf("[SKIP] LLVM 21 has known getFixedValue() assertion failures on SVE scalable types.\n");
135135
return 0;
136136
}
137137

0 commit comments

Comments
 (0)