[Mlir-commits] [flang] [mlir] [mlir][AsmParser] Disambiguate location attributes from trailing loc (PR #180668)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Mar 17 07:49:51 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 7668 tests passed
* 603 tests skipped
* 8 tests failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.Dialect/Builtin/Bytecode/builtin_fixed.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect -emit-bytecode -emit-bytecode-producer=fixed /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/Builtin/Bytecode/builtin_fixed.mlir -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Dialect/Builtin/Bytecode/Output/builtin_fixed.mlir.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect -emit-bytecode -emit-bytecode-producer=fixed /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/Builtin/Bytecode/builtin_fixed.mlir -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Dialect/Builtin/Bytecode/Output/builtin_fixed.mlir.tmp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/Builtin/Bytecode/builtin_fixed.mlir:222:22: error: expected attribute value
# |   bytecode.callsite = loc(callsite("callee" at "caller.cc":5:3)),
# |                      ^
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

### Flang
<details>
<summary>Flang.Fir/declare_value-codegen.fir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
fir-opt --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/declare_value-codegen.fir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/declare_value-codegen.fir
# executed command: fir-opt --fir-to-llvm-ir=target=x86_64-unknown-linux-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/declare_value-codegen.fir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/declare_value-codegen.fir:14:8: error: expected attribute value
# | #loc1 = loc(fused<#di_local_variable>["test.f90":1:1])
# |        ^
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/declare_value-codegen.fir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/declare_value-codegen.fir
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Flang.Lower/OpenMP/location.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-hlfir -fopenmp -mmlir --mlir-print-debuginfo /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90 -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-hlfir -fopenmp -mmlir --mlir-print-debuginfo /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90 -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90:63:9: error: CHECK: expected string not found in input
# | !CHECK: #[[PAR_LOC]] = loc("{{.*}}location.f90":9:9)
# |         ^
# | <stdin>:122:15: note: scanning from here
# |  } loc(#loc33)
# |               ^
# | <stdin>:122:15: note: with "PAR_LOC" equal to "loc5"
# |  } loc(#loc33)
# |               ^
# | <stdin>:144:84: note: possible intended match here
# | #loc5 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":9:9)
# |                                                                                    ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           117:  %9 = fir.convert %8#0 : (!fir.ref<!fir.char<1,4>>) -> !fir.ref<i8> loc(#loc35) 
# |           118:  %10 = fir.convert %c4 : (index) -> i64 loc(#loc35) 
# |           119:  %11 = fir.call @_FortranAioOutputAscii(%6, %9, %10) fastmath<contract> : (!fir.ref<i8>, !fir.ref<i8>, i64) -> i1 loc(#loc35) 
# |           120:  %12 = fir.call @_FortranAioEndIoStatement(%6) fastmath<contract> : (!fir.ref<i8>) -> i32 loc(#loc34) 
# |           121:  omp.terminator loc(#loc33) 
# |           122:  } loc(#loc33) 
# | check:63'0                   X error: no match found
# | check:63'1                     with "PAR_LOC" equal to "loc5"
# |           123:  return loc(#loc36) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~
# |           124:  } loc(#loc30) 
# | check:63'0     ~~~~~~~~~~~~~~~
# |           125:  func.func private @_FortranAioBeginExternalListOutput(i32, !fir.ref<i8>, i32) -> !fir.ref<i8> attributes {fir.io, fir.runtime, omp.declare_target = #omp.declaretarget<device_type = (nohost), capture_clause = (to), automap = false>} loc(#loc4) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           126:  fir.global linkonce @_QQclX5aac460df17fde5bc7680b30d9428b3d constant : !fir.char<1,94> { 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           127:  %0 = fir.string_lit "/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90\00"(94) : !fir.char<1,94> loc(#loc4) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           139: #loc = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":0:0) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           140: #loc1 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":34:6) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           141: #loc2 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":6:1) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           142: #loc3 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":7:12) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           143: #loc4 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":7:3) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           144: #loc5 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":9:9) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:63'2                                                                                        ?                               possible intended match
# |           145: #loc6 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":10:5) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           146: #loc7 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":10:14) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           147: #loc8 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":14:3) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           148: #loc9 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":14:12) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           149: #loc10 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/OpenMP/location.f90":15:1) 
# | check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Flang.Lower/macro-debug-file-loc.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90:26:10: error: CHECK: expected string not found in input
# | ! CHECK: #[[CALL_LOC]] = loc("{{.*}}macro-debug-file-loc.f90":11:3)
# |          ^
# | <stdin>:24:69: note: scanning from here
# |  %3 = fir.call @_QPifoo() fastmath<contract> : () -> i32 loc(#loc12)
# |                                                                     ^
# | <stdin>:24:69: note: with "CALL_LOC" equal to "loc4"
# |  %3 = fir.call @_QPifoo() fastmath<contract> : () -> i32 loc(#loc12)
# |                                                                     ^
# | <stdin>:33:79: note: possible intended match here
# | #loc4 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":11:3)
# |                                                                               ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            19:  } loc(#loc6) 
# |            20:  func.func @_QPtest2() { 
# |            21:  %0 = fir.dummy_scope : !fir.dscope loc(#loc10) 
# |            22:  %1 = fir.alloca i32 {bindc_name = "i", uniq_name = "_QFtest2Ei"} loc(#loc11) 
# |            23:  %2 = fir.declare %1 {uniq_name = "_QFtest2Ei"} : (!fir.ref<i32>) -> !fir.ref<i32> loc(#loc11) 
# |            24:  %3 = fir.call @_QPifoo() fastmath<contract> : () -> i32 loc(#loc12) 
# | check:26'0                                                                         X error: no match found
# | check:26'1                                                                           with "CALL_LOC" equal to "loc4"
# |            25:  fir.store %3 to %2 : !fir.ref<i32> loc(#loc12) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            26:  return loc(#loc13) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~
# |            27:  } loc(#loc10) 
# | check:26'0     ~~~~~~~~~~~~~~~
# |            28: } loc(#loc) 
# | check:26'0     ~~~~~~~~~~~~
# |            29: #loc = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":0:0) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            30: #loc1 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":6:1) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            31: #loc2 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":7:1) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            32: #loc3 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":9:1) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            33: #loc4 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":11:3) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:26'2                                                                                   ?                                          possible intended match
# |            34: #loc5 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":12:1) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            35: #loc6 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":16:1) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            36: #loc7 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":17:3) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            37: #loc8 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":16:18) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            38: #loc9 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/macro-debug-file-loc.f90":18:1) 
# | check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Flang.Lower/math-name-conflict.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
bbc -emit-fir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90 --math-runtime=precise -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90
# executed command: bbc -emit-fir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90 --math-runtime=precise -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90
# note: command had no output on stdout or stderr
# RUN: at line 3
bbc -emit-fir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90 --math-runtime=precise -debug-only=flang-lower-intrinsic,flang-lower-expr 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-WARN /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90
# executed command: bbc -emit-fir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90 --math-runtime=precise -debug-only=flang-lower-intrinsic,flang-lower-expr
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-WARN /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90:46:15: error: CHECK-WARN: expected string not found in input
# | ! CHECK-WARN: warning: loc({{.*}}math-name-conflict.f90{{.*}}): function
# |               ^
# | <stdin>:1:1: note: scanning from here
# | Generating 'atanh' call with type (f64) -> f64
# | ^
# | <stdin>:3:77: note: possible intended match here
# | warning: #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90":23:11): function signature mismatch for 'atanh' may lead to undefined behavior.
# |                                                                             ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: Generating 'atanh' call with type (f64) -> f64 
# | check:46'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2:  
# | check:46'0     ~
# |             3: warning: #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/math-name-conflict.f90":23:11): function signature mismatch for 'atanh' may lead to undefined behavior. 
# | check:46'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:46'1                                                                                 ?                                                                                                                     possible intended match
# |             4: %11 = "fir.call"(%10, %8) <{fastmath = #arith.fastmath<contract>}> : ((f64) -> f64, f64) -> f64 
# | check:46'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  
# | check:46'0     ~
# |             6: %11 = "fir.call"(%10, %8) <{fastmath = #arith.fastmath<contract>}> : ((f64) -> f64, f64) -> f64 
# | check:46'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  
# | check:46'0     ~
# |             8: Generating 'asinh' call with type (f64) -> f64 
# | check:46'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Flang.Lower/module-debug-file-loc-linux.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90:14:10: error: CHECK: expected string not found in input
# | ! CHECK: #[[MODULE_LOC]] = loc("/{{.*}}/test/Lower/module-debug-file-loc-linux.f90":0:0)
# |          ^
# | <stdin>:6:12: note: scanning from here
# | } loc(#loc)
# |            ^
# | <stdin>:6:12: note: with "MODULE_LOC" equal to "loc"
# | } loc(#loc)
# |            ^
# | <stdin>:7:68: note: possible intended match here
# | #loc = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90":0:0)
# |                                                                    ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: module attributes {dlti.dl_spec = #dlti.dl_spec<!llvm.ptr<270> = dense<32> : vector<4xi64>, !llvm.ptr<271> = dense<32> : vector<4xi64>, !llvm.ptr<272> = dense<64> : vector<4xi64>, i64 = dense<64> : vector<2xi64>, i128 = dense<128> : vector<2xi64>, f80 = dense<128> : vector<2xi64>, !llvm.ptr = dense<64> : vector<4xi64>, i1 = dense<8> : vector<2xi64>, i8 = dense<8> : vector<2xi64>, i16 = dense<16> : vector<2xi64>, i32 = dense<32> : vector<2xi64>, f16 = dense<16> : vector<2xi64>, f64 = dense<64> : vector<2xi64>, f128 = dense<128> : vector<2xi64>, "dlti.endianness" = "little", "dlti.mangling_mode" = "e", "dlti.legal_int_widths" = array<i32: 8, 16, 32, 64>, "dlti.stack_alignment" = 128 : i64>, fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128", llvm.ident = "flang version 23.0.0 (https://github.com/llvm/llvm-project 564b610a61a30ac33e1ea67431608c106bb47501)", llvm.target_triple = "x86_64-unknown-linux-gnu"} { 
# |             2:  func.func @_QPsb1() { 
# |             3:  %0 = fir.dummy_scope : !fir.dscope loc(#loc1) 
# |             4:  return loc(#loc2) 
# |             5:  } loc(#loc1) 
# |             6: } loc(#loc) 
# | check:14'0                X error: no match found
# | check:14'1                  with "MODULE_LOC" equal to "loc"
# |             7: #loc = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90":0:0) 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:14'2                                                                        ?                                                          possible intended match
# |             8: #loc1 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90":7:1) 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9: #loc2 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc-linux.f90":8:1) 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Flang.Lower/module-debug-file-loc.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90:12:10: error: CHECK: expected string not found in input
# | ! CHECK: #[[MODULE_LOC]] = loc("{{.*}}module-debug-file-loc.f90":0:0)
# |          ^
# | <stdin>:6:12: note: scanning from here
# | } loc(#loc)
# |            ^
# | <stdin>:6:12: note: with "MODULE_LOC" equal to "loc"
# | } loc(#loc)
# |            ^
# | <stdin>:7:78: note: possible intended match here
# | #loc = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90":0:0)
# |                                                                              ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: module attributes {dlti.dl_spec = #dlti.dl_spec<!llvm.ptr<270> = dense<32> : vector<4xi64>, !llvm.ptr<271> = dense<32> : vector<4xi64>, !llvm.ptr<272> = dense<64> : vector<4xi64>, i64 = dense<64> : vector<2xi64>, i128 = dense<128> : vector<2xi64>, f80 = dense<128> : vector<2xi64>, !llvm.ptr = dense<64> : vector<4xi64>, i1 = dense<8> : vector<2xi64>, i8 = dense<8> : vector<2xi64>, i16 = dense<16> : vector<2xi64>, i32 = dense<32> : vector<2xi64>, f16 = dense<16> : vector<2xi64>, f64 = dense<64> : vector<2xi64>, f128 = dense<128> : vector<2xi64>, "dlti.endianness" = "little", "dlti.mangling_mode" = "e", "dlti.legal_int_widths" = array<i32: 8, 16, 32, 64>, "dlti.stack_alignment" = 128 : i64>, fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128", llvm.ident = "flang version 23.0.0 (https://github.com/llvm/llvm-project 564b610a61a30ac33e1ea67431608c106bb47501)", llvm.target_triple = "x86_64-unknown-linux-gnu"} { 
# |             2:  func.func @_QPsb1() { 
# |             3:  %0 = fir.dummy_scope : !fir.dscope loc(#loc1) 
# |             4:  return loc(#loc2) 
# |             5:  } loc(#loc1) 
# |             6: } loc(#loc) 
# | check:12'0                X error: no match found
# | check:12'1                  with "MODULE_LOC" equal to "loc"
# |             7: #loc = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90":0:0) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'2                                                                                  ?                                          possible intended match
# |             8: #loc1 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90":5:1) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9: #loc2 = #loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/module-debug-file-loc.f90":6:1) 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Flang.Transforms/debug-dwarf-debug-flags.fir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
fir-opt --add-debug-info="debug-level=Full dwarf-debug-flags=\"-grecord-command-line -O2\""    --mlir-print-debuginfo /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Transforms/debug-dwarf-debug-flags.fir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-FLAGS /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Transforms/debug-dwarf-debug-flags.fir
# executed command: fir-opt '--add-debug-info=debug-level=Full dwarf-debug-flags="-grecord-command-line -O2"' --mlir-print-debuginfo /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Transforms/debug-dwarf-debug-flags.fir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Transforms/debug-dwarf-debug-flags.fir:10:14: error: expected attribute value
# | #loc_module = loc("simple.f90":1:1)
# |              ^
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-FLAGS /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Transforms/debug-dwarf-debug-flags.fir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-FLAGS /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Transforms/debug-dwarf-debug-flags.fir
# `-----------------------------
# error: command failed with exit status: 2

--

```
</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/180668


More information about the Mlir-commits mailing list