<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 - InstCombine - Assertion "Cannot convert from scalar to/from vector""
   href="https://bugs.llvm.org/show_bug.cgi?id=34841">34841</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>InstCombine - Assertion "Cannot convert from scalar to/from vector"
          </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>babokin@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang trunk rev 314936, x86_64

<span class="quote">> cat f.cpp</span >
typedef unsigned b __attribute__((ext_vector_type(2)));
b c;
void d() {
  b a(4 << 1 / ~(1 - 4 | c));
  0 >> a - 4;
}

<span class="quote">> clang++ -c -O2 -w f.cpp</span >
clang-6.0: /home/dybaboki/llvm/llvm-trunk-20171004/lib/IR/Constants.cpp:1575:
static llvm::Constant *llvm::ConstantExpr::getZExt(llvm::Constant *, llvm::Type
*, bool): Assertion `(fromVec == toVec) && "Cannot convert from scalar to/from
vector"' failed.
#0 0x000000000135083f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x135083f)
#1 0x0000000001350b46 SignalHandler(int)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x1350b46)
#2 0x00007f1e0819f370 __restore_rt (/lib64/libpthread.so.0+0xf370)
#3 0x00007f1e06d1b1d7 __GI_raise (/lib64/libc.so.6+0x351d7)
#4 0x00007f1e06d1c8c8 __GI_abort (/lib64/libc.so.6+0x368c8)
#5 0x00007f1e06d14146 __assert_fail_base (/lib64/libc.so.6+0x2e146)
#6 0x00007f1e06d141f2 (/lib64/libc.so.6+0x2e1f2)
#7 0x0000000000e547ba llvm::ConstantExpr::getZExt(llvm::Constant*, llvm::Type*,
bool) (/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0xe547ba)
#8 0x0000000001025fe5 llvm::InstCombiner::transformZExtICmp(llvm::ICmpInst*,
llvm::ZExtInst&, bool)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x1025fe5)
#9 0x000000000102691d llvm::InstCombiner::visitZExt(llvm::ZExtInst&)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x102691d)
#10 0x0000000000fed2f3 llvm::InstCombiner::run()
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0xfed2f3)</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>