[flang-commits] [flang] [flang] Fix ppc64le-flang-rhel-test buildbot failure (PR #142269)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Sun Jun 1 05:08:11 PDT 2025
================
@@ -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"{{.*}} }
----------------
tarunprabhu wrote:
Perhaps something like this might be safer. What do you think?
```
! RUN: %flang_fc1 -mprefer-vector-width=128 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefixes=ALL,W128
! RUN: %flang_fc1 -mprefer-vector-width=128 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefixes=ALL,W256
! ALL: define {{.+}} @func{{.*}} #[[ATTRS:[0-9]+]]
! ALL: attributes #[[ATTRS]] =
! W128-SAME: "prefer-vector-width"="128"
! W256-SAME: "prefer-vector-width"="256"
```
https://github.com/llvm/llvm-project/pull/142269
More information about the flang-commits
mailing list