[flang-commits] [flang] [flang] Fix ppc64le-flang-rhel-test buildbot failure (PR #142269)
Cameron McInally via flang-commits
flang-commits at lists.llvm.org
Sat May 31 05:17:46 PDT 2025
https://github.com/mcinally created https://github.com/llvm/llvm-project/pull/142269
PR#142073 introduced a new test that checks the
prefer-vector-width function attribute. This test was not accounting for target triples that include default function attributes.
This patch updates prefer-vector-width.f90 to ignore extra function attributes.
>From 5520865bf718b0d195b02f7a35008c92bb3999a2 Mon Sep 17 00:00:00 2001
From: Cameron McInally <cmcinally at nvidia.com>
Date: Sat, 31 May 2025 05:07:01 -0700
Subject: [PATCH] [flang] Fix ppc64le-flang-rhel-test buildbot failure
PR#142073 introduced a new test that checks the
prefer-vector-width function attribute. This test was not
accounting for target triples that include default function
attributes.
This patch updates prefer-vector-width.f90 to ignore extra
function attributes.
---
flang/test/Driver/prefer-vector-width.f90 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/flang/test/Driver/prefer-vector-width.f90 b/flang/test/Driver/prefer-vector-width.f90
index d0f5fd28db826..0e334f5f3e66e 100644
--- a/flang/test/Driver/prefer-vector-width.f90
+++ b/flang/test/Driver/prefer-vector-width.f90
@@ -9,8 +9,8 @@
subroutine func
end subroutine func
-! CHECK-DEF-NOT: attributes #0 = { "prefer-vector-width"={{.*}} }
-! CHECK-NONE: attributes #0 = { "prefer-vector-width"="none" }
-! CHECK-128: attributes #0 = { "prefer-vector-width"="128" }
-! CHECK-256: attributes #0 = { "prefer-vector-width"="256" }
+! CHECK-DEF-NOT: attributes #0 = { {{.*}}"prefer-vector-width"={{.*}} }
+! CHECK-NONE: attributes #0 = { {{.*}}"prefer-vector-width"="none"{{.*}} }
+! CHECK-128: attributes #0 = { {{.*}}"prefer-vector-width"="128"{{.*}} }
+! CHECK-256: attributes #0 = { {{.*}}"prefer-vector-width"="256"{{.*}} }
! CHECK-INVALID:error: invalid value 'xxx' in '-mprefer-vector-width=xxx'
More information about the flang-commits
mailing list