<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 - DAGTypeLegalizer::SoftenFloatOperand() hitting an assertion"
   href="https://bugs.llvm.org/show_bug.cgi?id=38738">38738</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DAGTypeLegalizer::SoftenFloatOperand() hitting an assertion
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20786" name="attach_20786" title="Minimal repro">attachment 20786</a> <a href="attachment.cgi?id=20786&action=edit" title="Minimal repro">[details]</a></span>
Minimal repro

Running clang on the attached repro:

  $ clang calcs.i    -mno-x87 -mno-sse2 -S 

results in the following crash:

SoftenFloatOperand Op #0: t5: v4f32 = BUILD_VECTOR
ConstantFP:f32<0.000000e+00>, ConstantFP:f32<0.000000e+00>,
ConstantFP:f32<0.000000e+00>, ConstantFP:f32<0.000000e+00>

Do not know how to soften this operator's operand!
UNREACHABLE executed at
/usr/local/google/src/llvm-msan-fix/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp:753!
Stack dump:
0.      Program arguments:
/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0 -cc1
-triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name calcs.i
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-feature -x87 -target-feature -sse2
-dwarf-column-info -debugger-tuning=gdb -coverage-notes-file
/usr/local/google/src/clang-kernel-build/kmsan-devel/calcs.gcno -resource-dir
/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/lib/clang/8.0.0
-fdebug-compilation-dir /usr/local/google/src/clang-kernel-build/kmsan-devel
-ferror-limit 19 -fmessage-length 139 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o calcs.s -x cpp-output calcs.i
-faddrsig 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'calcs.i'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@dcn_validate_bandwidth'
#0 0x0000555df864e12a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x25b712a)
#1 0x0000555df864c664 llvm::sys::RunSignalHandlers()
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x25b5664)
#2 0x0000555df864c792 SignalHandler(int)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x25b5792)
#3 0x00007fa8314d10c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x00007fa830062fcf gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x32fcf)
#5 0x00007fa8300643fa abort (/lib/x86_64-linux-gnu/libc.so.6+0x343fa)
#6 0x0000555df85f09da
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x25599da)
#7 0x0000555df8fe7089
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x2f50089)
#8 0x0000555df8f87700 llvm::DAGTypeLegalizer::run()
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x2ef0700)
#9 0x0000555df8f884de llvm::SelectionDAG::LegalizeTypes()
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x2ef14de)
#10 0x0000555df8f4af69 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x2eb3f69)
#11 0x0000555df8f50a10
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x2eb9a10)
#12 0x0000555df8f52a83
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.864)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x2ebba83)
#13 0x0000555df7874a04 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x17dda04)
#14 0x0000555df7d68035
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x1cd1035)
#15 0x0000555df80f3f19 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x205cf19)
#16 0x0000555df80f3f99 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/google/src/llvm-msan-fix/llvm/llvm_cmake_build/bin/clang-7.0+0x205cf99)</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>