[llvm-bugs] [Bug 38738] New: DAGTypeLegalizer::SoftenFloatOperand() hitting an assertion

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 28 07:04:35 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38738

            Bug ID: 38738
           Summary: DAGTypeLegalizer::SoftenFloatOperand() hitting an
                    assertion
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: glider at google.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20786
  --> https://bugs.llvm.org/attachment.cgi?id=20786&action=edit
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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180828/9ec01e0f/attachment.html>


More information about the llvm-bugs mailing list