<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 - [GlobalISel][AArch64] Assertion "invalid narrowing extend" with soft-float fp128"
href="https://bugs.llvm.org/show_bug.cgi?id=45721">45721</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[GlobalISel][AArch64] Assertion "invalid narrowing extend" with soft-float fp128
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>efriedma@quicinc.com
</td>
</tr>
<tr>
<th>CC</th>
<td>aemerson@apple.com, arnaud.degrandmaison@arm.com, jpaquette@apple.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>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 <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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)</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>