Issue 75907
Summary [flang] 'llvm.mul' op operand #1 must be integer or LLVM dialect-compatible vector of integer
Labels flang
Assignees
Reporter vfdff
    * test: https://gcc.godbolt.org/z/d3d6YWhcG

The above test can be compiled fine with gcc or classic-flang, while crash with the flang-new.
```
flang-new: warning: argument unused during compilation: '-O3'
error: loc("/app/example.f90":8:13): 'llvm.mul' op operand #1 must be integer or LLVM dialect-compatible vector of integer, but got 'index'
error: Lowering to LLVM IR failed
error: loc("/app/example.f90":6:5): cannot be converted to LLVM IR: missing `LLVMTranslationDialectInterface` registration for dialect for op: builtin.unrealized_conversion_cast
error: failed to create the LLVM module
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /opt/compiler-explorer/clang-llvmflang-trunk-20220531/bin/flang-new -fc1 -triple x86_64-unknown-linux-gnu -S -o /app/output.s /app/example.f90
 #0 0x0000557aeb57528f PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #1 0x0000557aeb57289c SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f7912e42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x0000557aeb784fb3 Fortran::frontend::CodeGenAction::setUpTargetMachine() (/opt/compiler-explorer/clang-llvmflang-trunk-20220531/bin/flang-new+0x4584fb3)
 #4 0x0000557aeb8252d8 Fortran::frontend::CodeGenAction::executeAction() (/opt/compiler-explorer/clang-llvmflang-trunk-20220531/bin/flang-new+0x46252d8)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to