<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/75907>75907</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [flang] 'llvm.mul' op operand #1 must be integer or LLVM dialect-compatible vector of integer
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vfdff
      </td>
    </tr>
</table>

<pre>
    * 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)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VVuP2zYT_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