<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Backend][LLC][Matrix][Intrinsics] Do not know how to widen this operator's operand"
   href="https://bugs.llvm.org/show_bug.cgi?id=45229">45229</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Backend][LLC][Matrix][Intrinsics] Do not know how to widen this operator's operand
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ntv@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23248" name="attach_23248" title="Repro for matrix instrinsics widen bug.">attachment 23248</a> <a href="attachment.cgi?id=23248&action=edit" title="Repro for matrix instrinsics widen bug.">[details]</a></span>
Repro for matrix instrinsics widen bug.

clang --version says

```
clang version google3-trunk (378b1e60809df7cc72436093f160b7ed228dad5a)
Target: x86_64-grtev4-linux-gnu
Thread model: posix
```


clang widen.ll

```
warning: overriding the module target triple with x86_64-grtev4-linux-gnu
[-Woverride-module]
WidenVectorOperand op #1: t11: v4f32 = llvm.matrix.multiply
TargetConstant:i64<171>, t5, t8, TargetConstant:i32<2>, TargetConstant:i32<1>,
TargetConstant:i32<2>, <stdin>:5:10

Do not know how to widen this operator's operand!
UNREACHABLE executed at
third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:4184!
Stack dump:
0.      Program arguments:
/google/obj/workspace/fded954c39a1fa9c6713da39054fe8f8baa93fb7a7f4cad833b21154839c8a20/b62635db-b010-4c48-89b1-e95d0668f57e/blaze-out/k8-dbg/bin/third_party/llvm/llvm-project/clang/clang
-cc1 -triple x86_64-grtev4-linux-gnu -emit-obj -mrelax-all --mrelax-relocations
-disable-free -main-file-name aaa.ll -mrelocation-model static -mthread-model
posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info
-fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir
/google/obj/workspace/fded954c39a1fa9c6713da39054fe8f8baa93fb7a7f4cad833b21154839c8a20/b62635db-b010-4c48-89b1-e95d0668f57e/blaze-out/k8-dbg/bin/third_party/llvm/llvm-project/lib/clang/google3-trunk
-fdebug-compilation-dir /google/src/cloud/ntv/benchmark-llvm-matrix/google3
-ferror-limit 19 -fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -faddrsig -o /tmp/aaa-566003.o -x
ir /tmp/aaa.ll 
1.      Code generation
2.      Running pass 'Function Pass Manager' on module '/tmp/aaa.ll'.
3.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@matrix_intrinsics_corner_case_2'
 #0 0x000055ef209a6841 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:569:11
 #1 0x000055ef209a6cd9 PrintStackTraceSignalHandler(void*)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:625:1
 #2 0x000055ef209a525b llvm::sys::RunSignalHandlers()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Signals.cpp:67:5
 #3 0x000055ef209a734b SignalHandler(int)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:406:1
 #4 0x00007fd3252c39a0 __restore_rt (/usr/grte/v4/lib64/libpthread.so.0+0xf9a0)
 #5 0x00007fd325145602 raise (/usr/grte/v4/lib64/libc.so.6+0x4c602)
 #6 0x00007fd325147320 abort (/usr/grte/v4/lib64/libc.so.6+0x4e320)
 #7 0x000055ef209232a4
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/ErrorHandling.cpp:210:3
 #8 0x000055ef1f099398
llvm::DAGTypeLegalizer::WidenVectorOperand(llvm::SDNode*, unsigned int)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:4186:58
 #9 0x000055ef1f047437 llvm::DAGTypeLegalizer::run()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:336:26
#10 0x000055ef1f04b8eb llvm::SelectionDAG::LegalizeTypes()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:1041:3
#11 0x000055ef1f02ccaf llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:837:13
...
```</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>