[llvm-bugs] [Bug 50070] New: LLVM ERROR: Cannot select: 0x557baeb2eaa0: f64, ch = strict_fmul nofpexcept 0x557baea829b8, 0x557baeb2ec40, undef:f64

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 21 23:05:19 PDT 2021


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

            Bug ID: 50070
           Summary: LLVM ERROR: Cannot select: 0x557baeb2eaa0: f64,ch =
                    strict_fmul nofpexcept 0x557baea829b8, 0x557baeb2ec40,
                    undef:f64
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: patrick.oppenlander at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 24780
  --> https://bugs.llvm.org/attachment.cgi?id=24780&action=edit
Reduced testcase

The following testcase fails with llvm 11.1.0 and 12.0.0.

It was discovered while attempting to compile
https://git.musl-libc.org/cgit/musl/tree/src/internal/floatscan.c for
powerpcspe.

% llc bugpoint-reduced-simplified.bc
LLVM ERROR: Cannot select: 0x55b0f2c9eff0: f64,ch = strict_fmul nofpexcept
0x55b0f2bf4688, 0x55b0f2c9f190, undef:f64
  0x55b0f2c9f190: f64,ch = load<(load 8 from constant-pool)> 0x55b0f2bf4688,
0x55b0f2c9f330, undef:i32
    0x55b0f2c9f330: i32 = add 0x55b0f2c9f058, 0x55b0f2c9f2c8
      0x55b0f2c9f058: i32 = PPCISD::Hi TargetConstantPool:i32<double
7.500000e-01> 0 [TF=512], Constant:i32<0>
        0x55b0f2c9f260: i32 = TargetConstantPool<double 7.500000e-01> 0
[TF=512]
        0x55b0f2c9ee50: i32 = Constant<0>
      0x55b0f2c9f2c8: i32 = PPCISD::Lo TargetConstantPool:i32<double
7.500000e-01> 0 [TF=256], Constant:i32<0>
        0x55b0f2c9f128: i32 = TargetConstantPool<double 7.500000e-01> 0
[TF=256]
        0x55b0f2c9ee50: i32 = Constant<0>
    0x55b0f2c9f0c0: i32 = undef
  0x55b0f2c9f1f8: f64 = undef
In function: __floatscan
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /opt/cross/musl-clang/clang/bin/llc
bugpoint-reduced-simplified.bc
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@__floatscan'
 #0 0x000055b0ef83e2d1 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/opt/cross/musl-clang/clang/bin/llc+0x11512d1)
 #1 0x000055b0ef83ce1d llvm::sys::RunSignalHandlers()
(/opt/cross/musl-clang/clang/bin/llc+0x114fe1d)
 #2 0x000055b0ef83d746 SignalHandler(int)
(/opt/cross/musl-clang/clang/bin/llc+0x1150746)
 #3 0x00007f8be5b58960 __restore_rt (/usr/lib/libpthread.so.0+0x13960)
 #4 0x00007f8be55d9ef5 raise (/usr/lib/libc.so.6+0x3cef5)
 #5 0x00007f8be55c3862 abort (/usr/lib/libc.so.6+0x26862)
 #6 0x000055b0ef7f4243 llvm::report_fatal_error(char const*, bool)
(/opt/cross/musl-clang/clang/bin/llc+0x1107243)
 #7 0x000055b0ef7f42a3 llvm::report_fatal_error(llvm::StringRef, bool)
(/opt/cross/musl-clang/clang/bin/llc+0x11072a3)
 #8 0x000055b0ef747637 (/opt/cross/musl-clang/clang/bin/llc+0x105a637)
 #9 0x000055b0ef750324 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*,
unsigned char const*, unsigned int)
(/opt/cross/musl-clang/clang/bin/llc+0x1063324)
#10 0x000055b0eeea577d (anonymous
namespace)::PPCDAGToDAGISel::Select(llvm::SDNode*)
(/opt/cross/musl-clang/clang/bin/llc+0x7b877d)
#11 0x000055b0ef74709f llvm::SelectionDAGISel::DoInstructionSelection()
(/opt/cross/musl-clang/clang/bin/llc+0x105a09f)
#12 0x000055b0ef74a30d llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/opt/cross/musl-clang/clang/bin/llc+0x105d30d)
#13 0x000055b0ef74c61f
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/opt/cross/musl-clang/clang/bin/llc+0x105f61f)
#14 0x000055b0ef74cd1e
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/opt/cross/musl-clang/clang/bin/llc+0x105fd1e)
#15 0x000055b0eeea60b8 (anonymous
namespace)::PPCDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/opt/cross/musl-clang/clang/bin/llc+0x7b90b8)
#16 0x000055b0ef2bfef9
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0)
(/opt/cross/musl-clang/clang/bin/llc+0xbd2ef9)
#17 0x000055b0ef4a71de llvm::FPPassManager::runOnFunction(llvm::Function&)
(/opt/cross/musl-clang/clang/bin/llc+0xdba1de)
#18 0x000055b0ef4a7569 llvm::FPPassManager::runOnModule(llvm::Module&)
(/opt/cross/musl-clang/clang/bin/llc+0xdba569)
#19 0x000055b0ef4a6da6 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/opt/cross/musl-clang/clang/bin/llc+0xdb9da6)
#20 0x000055b0eeb43683 main (/opt/cross/musl-clang/clang/bin/llc+0x456683)
#21 0x00007f8be55c4b25 __libc_start_main (/usr/lib/libc.so.6+0x27b25)
#22 0x000055b0eeba494e _start (/opt/cross/musl-clang/clang/bin/llc+0x4b794e)
[1]    3175659 abort (core dumped)  /opt/cross/musl-clang/clang/bin/llc
bugpoint-reduced-simplified.bc

-- 
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/20210422/971b5d29/attachment-0001.html>


More information about the llvm-bugs mailing list