[llvm-bugs] [Bug 45721] New: [GlobalISel][AArch64] Assertion "invalid narrowing extend" with soft-float fp128

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 28 17:24:34 PDT 2020


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

            Bug ID: 45721
           Summary: [GlobalISel][AArch64] Assertion "invalid narrowing
                    extend" with soft-float fp128
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: efriedma at quicinc.com
                CC: aemerson at apple.com, arnaud.degrandmaison at arm.com,
                    jpaquette at apple.com, llvm-bugs at lists.llvm.org,
                    smithp352 at googlemail.com, Ties.Stuij at arm.com

Testcase:

define double @x(fp128 %a) "target-features"="-fp-armv8" { ret double undef }

Compile with "llc -O0 -mtriple=aarch64":

llc: upstream/llvm-top/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:912:
void llvm::MachineIRBuilder::validateTruncExt(const llvm::LLT, const llvm::LLT,
bool): Assertion `DstTy.getSizeInBits() > SrcTy.getSizeInBits() && "invalid
narrowing extend"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: upstream-build-release/bin/llc -O0 -mtriple=aarch64
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
2.      Running pass 'IRTranslator' on function '@x'
 #0 0x00000000024214d4 PrintStackTraceSignalHandler(void*)
(upstream-build-release/bin/llc+0x24214d4)
 #1 0x000000000241f080 llvm::sys::RunSignalHandlers()
(upstream-build-release/bin/llc+0x241f080)
 #2 0x00000000024217dc SignalHandler(int)
(upstream-build-release/bin/llc+0x24217dc)
 #3 0x00007f21efc45330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
 #4 0x00007f21ee629c37 raise
/build/eglibc-xkFqqE/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
 #5 0x00007f21ee62d028 abort
/build/eglibc-xkFqqE/eglibc-2.19/stdlib/abort.c:91:0
 #6 0x00007f21ee622bf6 __assert_fail_base
/build/eglibc-xkFqqE/eglibc-2.19/assert/assert.c:92:0
 #7 0x00007f21ee622ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
 #8 0x000000000280a07c llvm::MachineIRBuilder::validateTruncExt(llvm::LLT,
llvm::LLT, bool) (upstream-build-release/bin/llc+0x280a07c)
 #9 0x000000000280ac6d llvm::MachineIRBuilder::buildInstr(unsigned int,
llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>,
llvm::Optional<unsigned int>) (upstream-build-release/bin/llc+0x280ac6d)
#10 0x000000000281c177 llvm::CSEMIRBuilder::buildInstr(unsigned int,
llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>,
llvm::Optional<unsigned int>) (upstream-build-release/bin/llc+0x281c177)
#11 0x00000000008fc1c0
llvm::AArch64CallLowering::lowerReturn(llvm::MachineIRBuilder&, llvm::Value
const*, llvm::ArrayRef<llvm::Register>, llvm::Register) const
(upstream-build-release/bin/llc+0x8fc1c0)
#12 0x00000000027c2624 llvm::IRTranslator::translate(llvm::Instruction const&)
(upstream-build-release/bin/llc+0x27c2624)
#13 0x00000000027c3df4
llvm::IRTranslator::runOnMachineFunction(llvm::MachineFunction&)
(upstream-build-release/bin/llc+0x27c3df4)
#14 0x0000000001992739
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(upstream-build-release/bin/llc+0x1992739)
#15 0x0000000001d54daf llvm::FPPassManager::runOnFunction(llvm::Function&)
(upstream-build-release/bin/llc+0x1d54daf)
#16 0x0000000001d55093 llvm::FPPassManager::runOnModule(llvm::Module&)
(upstream-build-release/bin/llc+0x1d55093)
#17 0x0000000001d5555c llvm::legacy::PassManagerImpl::run(llvm::Module&)
(upstream-build-release/bin/llc+0x1d5555c)
#18 0x00000000006cd5d3 compileModule(char**, llvm::LLVMContext&)
(upstream-build-release/bin/llc+0x6cd5d3)
#19 0x00000000006cb32d main (upstream-build-release/bin/llc+0x6cb32d)
#20 0x00007f21ee614f45 __libc_start_main
/build/eglibc-xkFqqE/eglibc-2.19/csu/libc-start.c:321:0
#21 0x00000000006ca889 _start (upstream-build-release/bin/llc+0x6ca889)

-- 
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/20200429/404dc04c/attachment.html>


More information about the llvm-bugs mailing list