[flang-commits] [flang] [flang] Fix ppc64le-flang-rhel-test buildbot failure (PR #142269)

via flang-commits flang-commits at lists.llvm.org
Sat May 31 05:18:21 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-driver

Author: Cameron McInally (mcinally)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/142269.diff


1 Files Affected:

- (modified) flang/test/Driver/prefer-vector-width.f90 (+4-4) 


``````````diff
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'

``````````

</details>


https://github.com/llvm/llvm-project/pull/142269


More information about the flang-commits mailing list