[flang-commits] [flang] [flang][NFC] Converted five tests from old lowering to new lowering (part 15) (PR #179854)
via flang-commits
flang-commits at lists.llvm.org
Wed Feb 4 19:50:19 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3980 tests passed
* 201 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Lower/explicit-interface-results.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-hlfir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.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/explicit-interface-results.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-hlfir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90 -o -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:7:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_cst_array()
# | ^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:13:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_dyn_array(m, n)
# | ^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:19:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_cst_char_cst_array()
# | ^^^^^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:25:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_dyn_char_cst_array(l)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:32:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_cst_char_dyn_array(m, n)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:39:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_dyn_char_dyn_array(l, m, n)
# | ^^^^^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:45:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_alloc()
# | ^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:50:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_cst_char_alloc()
# | ^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:56:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_dyn_char_alloc(l)
# | ^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:62:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_def_char_alloc()
# | ^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:67:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_pointer()
# | ^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:72:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_cst_char_pointer()
# | ^^^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:78:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_dyn_char_pointer(l)
# | ^^^^^^^^^^^^^^^^^^^^^^^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:84:10: warning: Function result is never defined [-Wundefined-function-result]
# | function return_def_char_pointer()
# | ^^^^^^^^^^^^^^^^^^^^^^^
# `-----------------------------
# 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/explicit-interface-results.f90
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:125:11: error: CHECK: expected string not found in input
# | ! CHECK: %[[load:.*]] = fir.load %[[VAL_0]] : !fir.ref<!fir.box<!fir.heap<!fir.array<?xf32>>>>
# | ^
# | <stdin>:340:45: note: scanning from here
# | %15 = fir.call @_FortranAioOutputDescriptor(%4, %14) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:340:45: note: with "VAL_0" equal to "0"
# | %15 = fir.call @_FortranAioOutputDescriptor(%4, %14) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:341:22: note: possible intended match here
# | hlfir.end_associate %11#1, %11#2 : !fir.ref<!fir.array<?xf32>>, i1
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:140:11: error: CHECK: expected string not found in input
# | ! CHECK: %[[load:.*]] = fir.load %[[VAL_0]] : !fir.ref<!fir.box<!fir.heap<!fir.array<?x!fir.char<1,10>>>>>
# | ^
# | <stdin>:373:45: note: scanning from here
# | %19 = fir.call @_FortranAioOutputDescriptor(%4, %18) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:373:45: note: with "VAL_0" equal to "0"
# | %19 = fir.call @_FortranAioOutputDescriptor(%4, %18) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:374:22: note: possible intended match here
# | hlfir.end_associate %15#1, %15#2 : !fir.ref<!fir.array<?x!fir.char<1,10>>>, i1
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:155:11: error: CHECK: expected string not found in input
# | ! CHECK: %[[load:.*]] = fir.load %[[VAL_0]] : !fir.ref<!fir.box<!fir.heap<!fir.array<?x!fir.char<1,?>>>>>
# | ^
# | <stdin>:402:45: note: scanning from here
# | %16 = fir.call @_FortranAioOutputDescriptor(%4, %15) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:402:45: note: with "VAL_0" equal to "0"
# | %16 = fir.call @_FortranAioOutputDescriptor(%4, %15) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:403:22: note: possible intended match here
# | hlfir.end_associate %12#1, %12#2 : !fir.ref<!fir.array<?x!fir.char<1,?>>>, i1
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90:254:11: error: CHECK: expected string not found in input
# | ! CHECK: %[[load:.*]] = fir.load %[[VAL_0]] : !fir.ref<!fir.box<!fir.heap<!fir.array<?x!fir.char<1,?>>>>>
# | ^
# | <stdin>:699:45: note: scanning from here
# | %23 = fir.call @_FortranAioOutputDescriptor(%5, %22) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:699:45: note: with "VAL_0" equal to "0"
# | %23 = fir.call @_FortranAioOutputDescriptor(%5, %22) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | ^
# | <stdin>:700:22: note: possible intended match here
# | hlfir.end_associate %19#1, %19#2 : !fir.ref<!fir.array<?x!fir.char<1,?>>>, i1
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/explicit-interface-results.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 335: %10 = fir.shape %9#1 : (index) -> !fir.shape<1>
# | 336: %11:3 = hlfir.associate %8(%10) {adapt.valuebyref} : (!hlfir.expr<?xf32>, !fir.shape<1>) -> (!fir.box<!fir.array<?xf32>>, !fir.ref<!fir.array<?xf32>>, i1)
# | 337: %12 = fir.shape %9#1 : (index) -> !fir.shape<1>
# | 338: %13 = fir.embox %11#1(%12) : (!fir.ref<!fir.array<?xf32>>, !fir.shape<1>) -> !fir.box<!fir.array<?xf32>>
# | 339: %14 = fir.convert %13 : (!fir.box<!fir.array<?xf32>>) -> !fir.box<none>
# | 340: %15 = fir.call @_FortranAioOutputDescriptor(%4, %14) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | check:125'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:125'1 with "VAL_0" equal to "0"
# | 341: hlfir.end_associate %11#1, %11#2 : !fir.ref<!fir.array<?xf32>>, i1
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:125'2 ? possible intended match
# | 342: hlfir.destroy %8 : !hlfir.expr<?xf32>
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 343: %16 = fir.call @_FortranAioEndIoStatement(%4) fastmath<contract> : (!fir.ref<i8>) -> i32
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 344: return
# | check:125'0 ~~~~~~~~
# | 345: }
# | check:125'0 ~~~
# | 346: func.func @_QMcallerPcst_char_alloc() {
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 368: %14 = fir.shape %13#1 : (index) -> !fir.shape<1>
# | 369: %15:3 = hlfir.associate %12(%14) typeparams %7 {adapt.valuebyref} : (!hlfir.expr<?x!fir.char<1,10>>, !fir.shape<1>, index) -> (!fir.box<!fir.array<?x!fir.char<1,10>>>, !fir.ref<!fir.array<?x!fir.char<1,10>>>, i1)
# | 370: %16 = fir.shape %13#1 : (index) -> !fir.shape<1>
# | 371: %17 = fir.embox %15#1(%16) : (!fir.ref<!fir.array<?x!fir.char<1,10>>>, !fir.shape<1>) -> !fir.box<!fir.array<?x!fir.char<1,10>>>
# | 372: %18 = fir.convert %17 : (!fir.box<!fir.array<?x!fir.char<1,10>>>) -> !fir.box<none>
# | 373: %19 = fir.call @_FortranAioOutputDescriptor(%4, %18) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | check:140'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:140'1 with "VAL_0" equal to "0"
# | 374: hlfir.end_associate %15#1, %15#2 : !fir.ref<!fir.array<?x!fir.char<1,10>>>, i1
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:140'2 ? possible intended match
# | 375: hlfir.destroy %12 : !hlfir.expr<?x!fir.char<1,10>>
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 376: llvm.intr.stackrestore %8 : !llvm.ptr
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 377: %20 = fir.call @_FortranAioEndIoStatement(%4) fastmath<contract> : (!fir.ref<i8>) -> i32
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 378: return
# | check:140'0 ~~~~~~~~
# | 379: }
# | check:140'0 ~~~
# | .
# | .
# | .
# | 397: %11 = fir.box_elesize %7 : (!fir.box<!fir.heap<!fir.array<?x!fir.char<1,?>>>>) -> index
# | 398: %12:3 = hlfir.associate %8(%10) typeparams %11 {adapt.valuebyref} : (!hlfir.expr<?x!fir.char<1,?>>, !fir.shape<1>, index) -> (!fir.box<!fir.array<?x!fir.char<1,?>>>, !fir.ref<!fir.array<?x!fir.char<1,?>>>, i1)
# | 399: %13 = fir.shape %9#1 : (index) -> !fir.shape<1>
# | 400: %14 = fir.embox %12#1(%13) typeparams %11 : (!fir.ref<!fir.array<?x!fir.char<1,?>>>, !fir.shape<1>, index) -> !fir.box<!fir.array<?x!fir.char<1,?>>>
# | 401: %15 = fir.convert %14 : (!fir.box<!fir.array<?x!fir.char<1,?>>>) -> !fir.box<none>
# | 402: %16 = fir.call @_FortranAioOutputDescriptor(%4, %15) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | check:155'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:155'1 with "VAL_0" equal to "0"
# | 403: hlfir.end_associate %12#1, %12#2 : !fir.ref<!fir.array<?x!fir.char<1,?>>>, i1
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:155'2 ? possible intended match
# | 404: hlfir.destroy %8 : !hlfir.expr<?x!fir.char<1,?>>
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 405: %17 = fir.call @_FortranAioEndIoStatement(%4) fastmath<contract> : (!fir.ref<i8>) -> i32
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 406: return
# | check:155'0 ~~~~~~~~
# | 407: }
# | check:155'0 ~~~
# | 408: func.func @_QMcallerPpointer_test() {
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 694: %18 = fir.shape %17#1 : (index) -> !fir.shape<1>
# | 695: %19:3 = hlfir.associate %16(%18) typeparams %11 {adapt.valuebyref} : (!hlfir.expr<?x!fir.char<1,?>>, !fir.shape<1>, index) -> (!fir.box<!fir.array<?x!fir.char<1,?>>>, !fir.ref<!fir.array<?x!fir.char<1,?>>>, i1)
# | 696: %20 = fir.shape %17#1 : (index) -> !fir.shape<1>
# | 697: %21 = fir.embox %19#1(%20) typeparams %11 : (!fir.ref<!fir.array<?x!fir.char<1,?>>>, !fir.shape<1>, index) -> !fir.box<!fir.array<?x!fir.char<1,?>>>
# | 698: %22 = fir.convert %21 : (!fir.box<!fir.array<?x!fir.char<1,?>>>) -> !fir.box<none>
# | 699: %23 = fir.call @_FortranAioOutputDescriptor(%5, %22) fastmath<contract> : (!fir.ref<i8>, !fir.box<none>) -> i1
# | check:254'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:254'1 with "VAL_0" equal to "0"
# | 700: hlfir.end_associate %19#1, %19#2 : !fir.ref<!fir.array<?x!fir.char<1,?>>>, i1
# | check:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:254'2 ? possible intended match
# | 701: hlfir.destroy %16 : !hlfir.expr<?x!fir.char<1,?>>
# | check:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 702: llvm.intr.stackrestore %12 : !llvm.ptr
# | check:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 703: %24 = fir.call @_FortranAioEndIoStatement(%5) fastmath<contract> : (!fir.ref<i8>) -> i32
# | check:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 704: return
# | check:254'0 ~~~~~~~~
# | 705: }
# | check:254'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/179854
More information about the flang-commits
mailing list