<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Assertion `UpdatedSlot < StackTop && Dest < 7' failed on i686 MSVC" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23957&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=OhQw0vD4Cv47JK2QGoDjfT3FmmSQjUNdsHc-tvPAE9M&s=D6OZZJ67OU2jz4PwrV279Hagwd-F-DS7IynVxZEY9f0&e=">23957</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `UpdatedSlot < StackTop && Dest < 7' failed on i686 MSVC
</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>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>alex@crichton.co
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The following IR:
target triple = "i686-pc-windows-msvc"
define void @foo() {
entry-block:
%w = load double, double* undef
%r = fptoui double %w to i32
store i32 %r, i32* undef
%t = fsub double %w, %w
store double %t, double* undef
ret void
}
will generate the following error when run through llc
```
llc: /home/alex/code/llvm/lib/Target/X86/X86FloatingPoint.cpp:1232: void
{anonymous}::FPS::handleTwoArgFP(llvm::MachineBasicBlock::iterator&): Assertion
`UpdatedSlot < StackTop && Dest < 7' failed.
0 llc 0x000000000223a714
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 44
1 llc 0x000000000223aa29
2 llc 0x000000000223952a
3 libpthread.so.0 0x00007f4b7b970340
4 libc.so.6 0x00007f4b7a984cc9 gsignal + 57
5 libc.so.6 0x00007f4b7a9880d8 abort + 328
6 libc.so.6 0x00007f4b7a97db86
7 libc.so.6 0x00007f4b7a97dc32
8 llc 0x0000000001574bde
9 llc 0x0000000001572805
10 llc 0x0000000001572136
11 llc 0x0000000001a48f0b
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
12 llc 0x000000000217d0dc
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
13 llc 0x000000000217d259
llvm::FPPassManager::runOnModule(llvm::Module&) + 97
14 llc 0x000000000217d5af
15 llc 0x000000000217dc8d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 249
16 llc 0x000000000217dec7
llvm::legacy::PassManager::run(llvm::Module&) + 39
17 llc 0x0000000000c575f7
18 llc 0x0000000000c565da main + 242
19 libc.so.6 0x00007f4b7a96fec5 __libc_start_main + 245
20 llc 0x0000000000c535d9
Stack dump:
0. Program arguments: ../llvm/build/Debug+Asserts/bin/llc
./bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'./bugpoint-reduced-simplified.ll'.
2. Running pass 'X86 FP Stackifier' on function '@foo'
zsh: abort (core dumped) ../llvm/build/Debug+Asserts/bin/llc
./bugpoint-reduced-simplified.ll
```</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>