<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 - ICE on ridiculous int"
href="https://bugs.llvm.org/show_bug.cgi?id=51829">51829</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ICE on ridiculous int
</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>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm@rifkin.dev
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The following code causes an ICE:
define void @foo(i16777215* %0, i16777215* %1, i16777215* %2) {
%4 = load i16777215, i16777215* %1
%5 = load i16777215, i16777215* %2
%6 = add nsw i16777215 %5, %4
store i16777215 %6, i16777215* %0
ret void
}
or C++:
typedef _ExtInt(16777215) i;
i foo(i a, i b) {
return a + b;
}
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: /opt/compiler-explorer/clang-trunk/bin/llc -o
/app/output.s -x86-asm-syntax=intel <source>
1. Running pass 'Function Pass Manager' on module '<source>'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@foo'
#0 0x000055ade6ed25bf PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
#1 0x000055ade6ecfe6d SignalHandler(int) Signals.cpp:0:0
#2 0x00007f915f8a43c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
#3 0x000055ade6e0493a llvm::APInt::setBitsSlowCase(unsigned int, unsigned int)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x2a0493a)
#4 0x000055ade5385aac llvm::APInt::getLowBitsSet(unsigned int, unsigned int)
(/opt/compiler-explorer/clang-trunk/bin/llc+0xf85aac)
#5 0x000055ade6bffea6 (anonymous
namespace)::DAGCombiner::visitSTORE(llvm::SDNode*) DAGCombiner.cpp:0:0
#6 0x000055ade6c09269 (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
DAGCombiner.cpp:0:0
#7 0x000055ade6c0bccd (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) DAGCombiner.cpp:0:0
#8 0x000055ade6c0d5ac llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x280d5ac)
#9 0x000055ade6d06db7 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/opt/compiler-explorer/clang-trunk/bin/llc+0x2906db7)
#10 0x000055ade6d0a104
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x290a104)
#11 0x000055ade6d0c392
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.887) SelectionDAGISel.cpp:0:0
#12 0x000055ade5ab8fd0 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
X86ISelDAGToDAG.cpp:0:0
#13 0x000055ade6332458
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1f32458)
#14 0x000055ade6758fb9 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x2358fb9)
#15 0x000055ade6759251 llvm::FPPassManager::runOnModule(llvm::Module&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x2359251)
#16 0x000055ade675a4c7 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x235a4c7)
#17 0x000055ade4cd6da1 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#18 0x000055ade4c02c56 main
(/opt/compiler-explorer/clang-trunk/bin/llc+0x802c56)
#19 0x00007f915f3540b3 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x270b3)
#20 0x000055ade4cceb1a _start
(/opt/compiler-explorer/clang-trunk/bin/llc+0x8ceb1a)
Compiler returned: 139
Needless to say, ICE on this core feature is breaking many codebases and should
have top priority :)
Bug goes at least back to 10.0.0.</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>