[Mlir-commits] [flang] [mlir] [mlir][func] Refactor FuncToLLVM discardable attributes algorithm (PR #188232)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Mar 24 06:30:20 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 7644 tests passed
* 660 tests skipped
* 7 tests failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Driver/func-attr-fast-math.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -O1 -emit-llvm -S -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90 --check-prefix=CHECK-NOFASTMATH
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -O1 -emit-llvm -S -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90' --check-prefix=CHECK-NOFASTMATH
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -Ofast -emit-llvm -S -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90 --check-prefix=CHECK-OFAST
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -Ofast -emit-llvm -S -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90' --check-prefix=CHECK-OFAST
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90:14:16: error: CHECK-OFAST: expected string not found in input
# | ! CHECK-OFAST: attributes #[[ATTRS]] = { {{.*}}"no-signed-zeros-fp-math"="true"{{.*}} }
# | ^
# | <stdin>:8:43: note: scanning from here
# | define void @func_() local_unnamed_addr #0 {
# | ^
# | <stdin>:8:43: note: with "ATTRS" equal to "0"
# | define void @func_() local_unnamed_addr #0 {
# | ^
# | <stdin>:12:1: note: possible intended match here
# | attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "target-cpu"="x86-64" }
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-fast-math.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: flang: warning: argument '-Ofast' is deprecated; use '-O3 -ffast-math -fstack-arrays -fno-protect-parens' for the same behavior, or '-O3 -fstack-arrays' to enable only conforming optimizations [-Wdeprecated-ofast]
# | 2: ; ModuleID = 'FIRModule'
# | 3: source_filename = "FIRModule"
# | 4: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
# | 5: target triple = "x86_64-pc-windows-msvc19.44.35225"
# | 6:
# | 7: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)
# | 8: define void @func_() local_unnamed_addr #0 {
# | check:14'0 X~~ error: no match found
# | check:14'1 with "ATTRS" equal to "0"
# | 9: ret void
# | check:14'0 ~~~~~~~~~~
# | 10: }
# | check:14'0 ~~
# | 11:
# | check:14'0 ~
# | 12: attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "target-cpu"="x86-64" }
# | check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:14'2 ? possible intended match
# | 13:
# | check:14'0 ~
# | 14: !llvm.ident = !{!0}
# | check:14'0 ~~~~~~~~~~~~~~~~~~~~
# | 15: !llvm.linker.options = !{!1, !2, !3}
# | check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: !llvm.module.flags = !{!4, !5, !6}
# | check:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17:
# | check:14'0 ~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/func-attr-instrument-functions.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -O1 -finstrument-functions -emit-llvm -S -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-instrument-functions.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-instrument-functions.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -O1 -finstrument-functions -emit-llvm -S -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-instrument-functions.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-instrument-functions.f90'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-instrument-functions.f90:7:10: error: CHECK: expected string not found in input
# | ! CHECK: {{.*}}call void @__cyg_profile_func_enter(ptr {{.*}}@func_, ptr {{.*}})
# | ^
# | <stdin>:7:21: note: scanning from here
# | define void @func_() local_unnamed_addr #0 {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr-instrument-functions.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'FIRModule'
# | 2: source_filename = "FIRModule"
# | 3: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
# | 4: target triple = "x86_64-pc-windows-msvc19.44.35225"
# | 5:
# | 6: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)
# | 7: define void @func_() local_unnamed_addr #0 {
# | check:7 X~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 8: ret void
# | check:7 ~~~~~~~~~~
# | 9: }
# | check:7 ~~
# | 10:
# | check:7 ~
# | 11: attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "target-cpu"="x86-64" }
# | check:7 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 12:
# | check:7 ~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/func-attr.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -triple aarch64-none-none -mframe-pointer=none -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90 --check-prefix=CHECK-NONEFP
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -triple aarch64-none-none -mframe-pointer=none -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90' --check-prefix=CHECK-NONEFP
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -triple aarch64-none-none -mframe-pointer=non-leaf -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90 --check-prefix=CHECK-NONLEAFFP
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -triple aarch64-none-none -mframe-pointer=non-leaf -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90' --check-prefix=CHECK-NONLEAFFP
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90:15:25: error: CHECK-NONLEAFFP-SAME: expected string not found in input
# | ! CHECK-NONLEAFFP-SAME: #0
# | ^
# | <stdin>:6:21: note: scanning from here
# | define void @func_() {
# | ^
# | <stdin>:10:17: note: possible intended match here
# | !llvm.ident = !{!0}
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Driver\func-attr.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'FIRModule'
# | 2: source_filename = "FIRModule"
# | 3: target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
# | 4: target triple = "aarch64-none-none"
# | 5:
# | 6: define void @func_() {
# | same:15'0 X~~ error: no match found
# | 7: ret void
# | same:15'0 ~~~~~~~~~~
# | 8: }
# | same:15'0 ~~
# | 9:
# | same:15'0 ~
# | 10: !llvm.ident = !{!0}
# | same:15'0 ~~~~~~~~~~~~~~~~~~~~
# | same:15'1 ? possible intended match
# | 11: !llvm.module.flags = !{!1}
# | same:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 12:
# | same:15'0 ~
# | 13: !0 = !{!"flang version 23.0.0 (https://github.com/llvm/llvm-project 3050559a1a8d6ec544247e9d19ad09e874d466e8)"}
# | same:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: !1 = !{i32 2, !"Debug Info Version", i32 3}
# | same:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/mrecip.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-OMIT
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-OMIT
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-NOARG
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-NOARG
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=all -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-ALL
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip=all '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-ALL
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=none -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-NONE
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip=none '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-NONE
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=default -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-DEF
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip=default '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-DEF
# note: command had no output on stdout or stderr
# RUN: at line 8
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=divd,divf,divh,vec-divd,vec-divf,vec-divh,sqrtd,sqrtf,sqrth,vec-sqrtd,vec-sqrtf,vec-sqrth -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-POS
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip=divd,divf,divh,vec-divd,vec-divf,vec-divh,sqrtd,sqrtf,sqrth,vec-sqrtd,vec-sqrtf,vec-sqrth '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-POS
# note: command had no output on stdout or stderr
# RUN: at line 9
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=!divd,!divf,!divh,!vec-divd,!vec-divf,!vec-divh,!sqrtd,!sqrtf,!sqrth,!vec-sqrtd,!vec-sqrtf,!vec-sqrth -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-NEG
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' '-mrecip=!divd,!divf,!divh,!vec-divd,!vec-divf,!vec-divh,!sqrtd,!sqrtf,!sqrth,!vec-sqrtd,!vec-sqrtf,!vec-sqrth' '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-NEG
# note: command had no output on stdout or stderr
# RUN: at line 10
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=!divd,divf,!divh,sqrtd,!sqrtf,sqrth -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG,CHECK-FLANG-MIX
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' '-mrecip=!divd,divf,!divh,sqrtd,!sqrtf,sqrth' '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG,CHECK-FLANG-MIX
# note: command had no output on stdout or stderr
# RUN: at line 11
not c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=xxx -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG-INV
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip=xxx '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG-INV
# note: command had no output on stdout or stderr
# RUN: at line 12
not c:\_work\llvm-project\llvm-project\build\bin\flang.exe -mrecip=divd,divd -### -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FLANG-DUP
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -mrecip=divd,divd '-###' -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FLANG-DUP
# note: command had no output on stdout or stderr
# RUN: at line 14
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefix=CHECK-FC1-OMIT
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefix=CHECK-FC1-OMIT
# note: command had no output on stdout or stderr
# RUN: at line 15
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -mrecip -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90 --check-prefixes=CHECK-FC1,CHECK-FC1-NOARG
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -mrecip -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90' --check-prefixes=CHECK-FC1,CHECK-FC1-NOARG
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90:41:14: error: CHECK-FC1: expected string not found in input
# | ! CHECK-FC1: define {{.+}} @func{{.*}} #[[ATTRS:[0-9]+]]
# | ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'FIRModule'
# | ^
# | <stdin>:6:1: note: possible intended match here
# | define void @func_() {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Driver\mrecip.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'FIRModule'
# | check:41'0 X~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: source_filename = "FIRModule"
# | check:41'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
# | check:41'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: target triple = "x86_64-pc-windows-msvc"
# | check:41'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5:
# | check:41'0 ~
# | 6: define void @func_() {
# | check:41'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | check:41'1 ? possible intended match
# | 7: ret void
# | check:41'0 ~~~~~~~~~~
# | 8: }
# | check:41'0 ~~
# | 9:
# | check:41'0 ~
# | 10: !llvm.ident = !{!0}
# | check:41'0 ~~~~~~~~~~~~~~~~~~~~
# | 11: !llvm.module.flags = !{!1, !2}
# | check:41'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/prefer-vector-width.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90 --check-prefix=CHECK-DEF
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90' --check-prefix=CHECK-DEF
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -mprefer-vector-width=none -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90 2>&1| c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90 --check-prefixes=CHECK,CHECK-NONE
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -mprefer-vector-width=none -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90' --check-prefixes=CHECK,CHECK-NONE
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90:12:10: error: CHECK: expected string not found in input
# | ! CHECK: define {{.+}} @func{{.*}} #[[ATTRS:[0-9]+]]
# | ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'FIRModule'
# | ^
# | <stdin>:6:1: note: possible intended match here
# | define void @func_() {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Driver\prefer-vector-width.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'FIRModule'
# | check:12'0 X~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: source_filename = "FIRModule"
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: target triple = "x86_64-pc-windows-msvc"
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5:
# | check:12'0 ~
# | 6: define void @func_() {
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'1 ? possible intended match
# | 7: ret void
# | check:12'0 ~~~~~~~~~~
# | 8: }
# | check:12'0 ~~
# | 9:
# | check:12'0 ~
# | 10: !llvm.ident = !{!0}
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~
# | 11: !llvm.module.flags = !{!1, !2}
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Lower/Arm/arm-sve-vector-bits-vscale-range.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -triple aarch64-none-linux-gnu -target-feature +sve -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Lower\Arm\arm-sve-vector-bits-vscale-range.f90 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Lower\Arm\arm-sve-vector-bits-vscale-range.f90 -D#VBITS=1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -triple aarch64-none-linux-gnu -target-feature +sve -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Lower\Arm\arm-sve-vector-bits-vscale-range.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Lower\Arm\arm-sve-vector-bits-vscale-range.f90' '-D#VBITS=1'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Lower\Arm\arm-sve-vector-bits-vscale-range.f90:19:10: error: CHECK: expected string not found in input
# | ! CHECK: attributes #0 = {{{.*}} vscale_range([[#VBITS]],[[#VBITS]]) {{.*}}}
# | ^
# | <stdin>:6:24: note: scanning from here
# | define void @func_() #0 {
# | ^
# | <stdin>:6:24: note: with "VBITS" equal to "1"
# | define void @func_() #0 {
# | ^
# | <stdin>:6:24: note: with "VBITS" equal to "1"
# | define void @func_() #0 {
# | ^
# | <stdin>:10:1: note: possible intended match here
# | attributes #0 = { "target-features"="+sve" }
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Lower\Arm\arm-sve-vector-bits-vscale-range.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'FIRModule'
# | 2: source_filename = "FIRModule"
# | 3: target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
# | 4: target triple = "aarch64-none-linux-gnu"
# | 5:
# | 6: define void @func_() #0 {
# | check:19'0 X~~ error: no match found
# | check:19'1 with "VBITS" equal to "1"
# | check:19'2 with "VBITS" equal to "1"
# | 7: ret void
# | check:19'0 ~~~~~~~~~~
# | 8: }
# | check:19'0 ~~
# | 9:
# | check:19'0 ~
# | 10: attributes #0 = { "target-features"="+sve" }
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:19'3 ? possible intended match
# | 11:
# | check:19'0 ~
# | 12: !llvm.ident = !{!0}
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~
# | 13: !llvm.module.flags = !{!1}
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14:
# | check:19'0 ~
# | 15: !0 = !{!"flang version 23.0.0 (https://github.com/llvm/llvm-project 3050559a1a8d6ec544247e9d19ad09e874d466e8)"}
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: !1 = !{i32 2, !"Debug Info Version", i32 3}
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Lower/RISCV/riscv-vector-bits-vscale-range.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -triple riscv64-none-linux-gnu -target-feature +v -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - C:\_work\llvm-project\llvm-project\flang\test\Lower\RISCV\riscv-vector-bits-vscale-range.f90 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Lower\RISCV\riscv-vector-bits-vscale-range.f90 -D#VBITS=2
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -triple riscv64-none-linux-gnu -target-feature +v -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\flang\test\Lower\RISCV\riscv-vector-bits-vscale-range.f90'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Lower\RISCV\riscv-vector-bits-vscale-range.f90' '-D#VBITS=2'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Lower\RISCV\riscv-vector-bits-vscale-range.f90:21:10: error: CHECK: expected string not found in input
# | ! CHECK: attributes #0 = {{{.*}} vscale_range([[#VBITS]],[[#VBITS]]) {{.*}}}
# | ^
# | <stdin>:6:24: note: scanning from here
# | define void @func_() #0 {
# | ^
# | <stdin>:6:24: note: with "VBITS" equal to "2"
# | define void @func_() #0 {
# | ^
# | <stdin>:6:24: note: with "VBITS" equal to "2"
# | define void @func_() #0 {
# | ^
# | <stdin>:10:1: note: possible intended match here
# | attributes #0 = { "target-features"="+v" }
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Lower\RISCV\riscv-vector-bits-vscale-range.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'FIRModule'
# | 2: source_filename = "FIRModule"
# | 3: target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
# | 4: target triple = "riscv64-none-linux-gnu"
# | 5:
# | 6: define void @func_() #0 {
# | check:21'0 X~~ error: no match found
# | check:21'1 with "VBITS" equal to "2"
# | check:21'2 with "VBITS" equal to "2"
# | 7: ret void
# | check:21'0 ~~~~~~~~~~
# | 8: }
# | check:21'0 ~~
# | 9:
# | check:21'0 ~
# | 10: attributes #0 = { "target-features"="+v" }
# | check:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:21'3 ? possible intended match
# | 11:
# | check:21'0 ~
# | 12: !llvm.ident = !{!0}
# | check:21'0 ~~~~~~~~~~~~~~~~~~~~
# | 13: !llvm.module.flags = !{!1}
# | check:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14:
# | check:21'0 ~
# | 15: !0 = !{!"flang version 23.0.0 (https://github.com/llvm/llvm-project 3050559a1a8d6ec544247e9d19ad09e874d466e8)"}
# | check:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: !1 = !{i32 2, !"Debug Info Version", i32 3}
# | check:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/188232
More information about the Mlir-commits
mailing list