<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 - Regression in "[X86][SSE] Fold scalar_to_vector(i64 anyext(x)) -> ...", assert "Idx == 0 && "Unexpected SCALAR_TO_VECTOR operand index."" failed"
   href="https://bugs.llvm.org/show_bug.cgi?id=41097">41097</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression in "[X86][SSE] Fold scalar_to_vector(i64 anyext(x)) -> ...", assert "Idx == 0 && "Unexpected SCALAR_TO_VECTOR operand index."" failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>martin@martin.st
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Compiling <a href="https://martin.st/temp/qdrawhelper-reduce.cpp">https://martin.st/temp/qdrawhelper-reduce.cpp</a> for x86_64 with -O2 now
aborts:

clang-9: ../lib/CodeGen/SelectionDAG/DAGCombiner.cpp:17599: llvm::SDValue
combineShuffleOfScalars(llvm
::ShuffleVectorSDNode*, llvm::SelectionDAG&, const llvm::TargetLowering&):
Assertion `Idx == 0 && "Une
xpected SCALAR_TO_VECTOR operand index."' failed.
Stack dump:
0.      Program arguments: /home/martin/clang-nightly-sat/bin/clang-9 -cc1
-triple x86_64-unknown-linu
x-gnu -emit-obj -disable-free -main-file-name qdrawhelper-preproc.cpp
-mrelocation-model static -mthre
ad-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -targ
et-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer
-coverage-notes-file /
home/martin/code/reduce-qdrawhelper/qdrawhelper-preproc.gcno -resource-dir
/home/martin/clang-nightly-
sat/lib/clang/9.0.0 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.
0 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward
-internal
-isystem /usr/local/include -internal-isystem
/home/martin/clang-nightly-sat/lib/clang/9.0.0/include -
internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-ex
ternc-isystem /usr/include -O2 -fdeprecated-macro -fdebug-compilation-dir
/home/martin/code/reduce-qdr
awhelper -ferror-limit 19 -fmessage-length 102 -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiag
nostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o
qdrawhelper-preproc.o -x c+
+ qdrawhelper-preproc.cpp -faddrsig
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'qdrawhelper-preproc.cpp'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z15fetchRGBToRGB64ILN6QImage6
FormatE0EEPK1APS2_PKciiPKiPi'
 #0 0x0000000001b9c88a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/martin/clang-nightly-sat/
bin/clang-9+0x1b9c88a)
 #1 0x0000000001b9a63c llvm::sys::RunSignalHandlers()
(/home/martin/clang-nightly-sat/bin/clang-9+0x1b
9a63c)
 #2 0x0000000001b9a7a7 (/home/martin/clang-nightly-sat/bin/clang-9+0x1b9a7a7)
 #3 0x00007f94fb497390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
 #4 0x00007f94fa209428 gsignal
/build/glibc-LK5gWL/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.
c:54:0
 #5 0x00007f94fa20b02a abort /build/glibc-LK5gWL/glibc-2.23/stdlib/abort.c:91:0
 #6 0x00007f94fa201bd7 __assert_fail_base
/build/glibc-LK5gWL/glibc-2.23/assert/assert.c:92:0
 #7 0x00007f94fa201c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
 #8 0x00000000024e7849 (/home/martin/clang-nightly-sat/bin/clang-9+0x24e7849)
 #9 0x000000000252d07b (/home/martin/clang-nightly-sat/bin/clang-9+0x252d07b)
#10 0x000000000252dfbf (/home/martin/clang-nightly-sat/bin/clang-9+0x252dfbf)
#11 0x000000000252f944 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGen
Opt::Level) (/home/martin/clang-nightly-sat/bin/clang-9+0x252f944)
#12 0x00000000026029dc llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/martin/clang-nightly-sat/bin
/clang-9+0x26029dc)
#13 0x000000000260c80b
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/mart
in/clang-nightly-sat/bin/clang-9+0x260c80b)
#14 0x000000000260ea44 (/home/martin/clang-nightly-sat/bin/clang-9+0x260ea44)
#15 0x0000000000e2f700 (/home/martin/clang-nightly-sat/bin/clang-9+0xe2f700)
#16 0x00000000012d65b1 (/home/martin/clang-nightly-sat/bin/clang-9+0x12d65b1)
#17 0x000000000168d2fc llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/martin/clang-nightly
-sat/bin/clang-9+0x168d2fc)
#18 0x000000000168d4dc llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/martin/clang-nightly-sat
/bin/clang-9+0x168d4dc)
#19 0x000000000168e5f9 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/martin/clang-nightly-s
at/bin/clang-9+0x168e5f9)
#20 0x0000000001d8002d (/home/martin/clang-nightly-sat/bin/clang-9+0x1d8002d)</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>