[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:49:34 PDT 2025
================
@@ -1,16 +1,18 @@
! Test that -mprefer-vector-width works as expected.
! RUN: %flang_fc1 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-DEF
-! RUN: %flang_fc1 -mprefer-vector-width=none -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-NONE
-! RUN: %flang_fc1 -mprefer-vector-width=128 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-128
-! RUN: %flang_fc1 -mprefer-vector-width=256 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-256
-! RUN: not %flang_fc1 -mprefer-vector-width=xxx -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-INVALID
+! RUN: %flang_fc1 -mprefer-vector-width=none -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefixes=CHECK,CHECK-NONE
+! RUN: %flang_fc1 -mprefer-vector-width=128 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefixes=CHECK,CHECK-128
+! RUN: %flang_fc1 -mprefer-vector-width=256 -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefixes=CHECK,CHECK-256
+! RUN: not %flang_fc1 -mprefer-vector-width=xxx -emit-llvm -o - %s 2>&1| FileCheck %s --check-prefixes=CHECK-INVALID
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: define {{.+}} @func{{.*}} #[[ATTRS:[0-9]+]]
+! CHECK: attributes #[[ATTRS]] =
+! CHECK-DEF-NOT: "prefer-vector-width"
+! CHECK-NONE-SAME: "prefer-vector-width"="none"
+! CHECK-128-SAME: "prefer-vector-width"="128"
+! CHECK-256-SAME: "prefer-vector-width"="256"
! CHECK-INVALID:error: invalid value 'xxx' in '-mprefer-vector-width=xxx'
----------------
tarunprabhu wrote:
Nit: For consistency with the other check patterns.
```suggestion
! CHECK-INVALID: error: invalid value 'xxx' in '-mprefer-vector-width=xxx'
```
https://github.com/llvm/llvm-project/pull/142269
More information about the flang-commits
mailing list