Skip to content

Commit a7a4c6c

Browse files
authored
Skip two sub-tests on llvm 21.1 (#8782)
Tests in correctness_register_shuffle are broken due to llvm/llvm-project#126337 These are fixed by llvm/llvm-project#149393 but it is not included in LLVM 21.1.0 Hopefully they will include it in a later patch release of LLVM 21.
1 parent e3b0ccd commit a7a4c6c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/correctness/register_shuffle.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ int main(int argc, char **argv) {
1111
return 0;
1212
}
1313

14+
// As 8/26/2025 llvm 21.1.0 includes some bugs w.r.t float32x2 vectors.
15+
// See https://github.com/llvm/llvm-project/pull/126337#issuecomment-3192412599
16+
const bool bad_llvm_version = Halide::Internal::get_llvm_version() == 211;
17+
1418
{
1519
// Shuffle test to do a small convolution
1620
Func f, g;
@@ -93,7 +97,7 @@ int main(int argc, char **argv) {
9397
}
9498
}
9599

96-
{
100+
if (!bad_llvm_version) {
97101
// Vectorized broadcast test. Each lane is responsible for a
98102
// 2-vector from 'a' and a 2-vector from 'b' instead of a single
99103
// value.
@@ -251,7 +255,7 @@ int main(int argc, char **argv) {
251255
}
252256
}
253257

254-
{
258+
if (!bad_llvm_version) {
255259
// Bilinear upsample
256260
Func f, upx, upy;
257261
Var x, y;

0 commit comments

Comments
 (0)