Skip to content

[flang][OpenMP] Incorrect result with Fujitsu test 1054_0026, 1054_0035 #141534

Open
@eugeneepshteyn

Description

@eugeneepshteyn

Test source: https://github.com/fujitsu/compiler-test-suite/blob/ac5d63a278b47141b51e12bd7ec3b189177d63e9/Fortran/1054/1054_0035.f90

Similar test: https://github.com/fujitsu/compiler-test-suite/blob/ac5d63a278b47141b51e12bd7ec3b189177d63e9/Fortran/1054/1054_0026.f90

Result:

$ flang -fopenmp 1054_0035.f90 && ./a.out
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
 NG : xpno(1)= 4
 NG : xpno(2)= 11
 pass

The NG lines should not be printed for the test to pass. (pass should be the only output for the passing test.)

flang version:

flang version 21.0.0git (https://github.com/llvm/llvm-project b1017a4b84420894c0aedfe3872ef617f66f087f)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: ...
Build config: +assertions

I don't see anything obviously wrong with the test, but I hope OpenMP experts could investigate it further.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions