Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flang/LoongArch "Do not know how to promote this operator" in DAG->DAG Pattern Instruction Selection #110995

Open
martin-frbg opened this issue Oct 3, 2024 · 0 comments
Labels
backend:loongarch crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@martin-frbg
Copy link

Compiling the LAPACK parts of OpenBLAS on a Loongson 3A6000 running Debian sid currently fails with both 18.1.8 and 19.1.0
producing the following error messages. (This should also be reproducible with Reference-LAPACK from which these parts are copied verbatim, if you prefer to test with a project that is entirely in Fortran)

flang-new-18 -O2 -march=loongarch64 -fPIC -c -o slacon.o slacon.f
flang-new-18 -O2 -march=loongarch64 -fPIC -c -o slacn2.o slacn2.f
LLVM ERROR: Do not know how to promote this operator!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/lib/llvm-18/bin/flang-new -fc1 -triple loongarch64-unknown-linux-gnu -emit-obj -fcolor-diagnostics -mrelocation-model pic -pic-level 2 -target-cpu loongarch64 -mframe-pointer=none -O2 -o slacon.o -x f95-cpp-input slacon.f
1.	Running pass 'Function Pass Manager' on module 'FIRModule'.
2.	Running pass 'LoongArch DAG->DAG Pattern Instruction Selection' on function '@slacon_'
LLVM ERROR: Do not know how to promote this operator!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/lib/llvm-18/bin/flang-new -fc1 -triple loongarch64-unknown-linux-gnu -emit-obj -fcolor-diagnostics -mrelocation-model pic -pic-level 2 -target-cpu loongarch64 -mframe-pointer=none -O2 -o slacn2.o -x f95-cpp-input slacn2.f
1.	Running pass 'Function Pass Manager' on module 'FIRModule'.
2.	Running pass 'LoongArch DAG->DAG Pattern Instruction Selection' on function '@slacn2_'

Diagnostic output attached, this was originally reported in OpenMathLib/OpenBLAS#4907
slacon.f is at https://github.com/Reference-LAPACK/lapack/tree/master/SRC/slacon.f
slacon-dda0eb.zip

@github-actions github-actions bot added the flang Flang issues not falling into any other category label Oct 3, 2024
@EugeneZelenko EugeneZelenko added crash Prefer [crash-on-valid] or [crash-on-invalid] backend:loongarch and removed flang Flang issues not falling into any other category labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:loongarch crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

No branches or pull requests

2 participants