<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 - Crash with alloca swifterror"
href="https://bugs.llvm.org/show_bug.cgi?id=35767">35767</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash with alloca swifterror
</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: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm-dev@redking.me.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Reduced from <a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4805">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4805</a>
Removing the 'swifterror' attribute succeeds.
llc -mtriple=x86_64-unknown
define void @f() {
br label %BB1
BB1:
%A31 = alloca swifterror i32
%L7 = load i32, i32* %A31
%B30 = add i32 %L7, 2147483647
store i32 %B30, i32* %A31
store i32 %L7, i32* undef
%C29 = icmp slt i32 %L7, %B30
br label %BB1
unreachable
}
********** EXPANDING POST-RA PSEUDO INSTRS **********
********** Function: f
real copy: renamable %rcx = COPY %rsp
replaced by: %rcx = MOV64rr %rsp
real copy: %rsp = COPY killed renamable %rcx
replaced by: %rsp = MOV64rr killed %rcx
real copy: renamable %eax = COPY killed renamable %rax
Cannot copy RAX to EAX
Cannot emit physreg copy instruction
UNREACHABLE executed at D:\LLVM\llvm\lib\Target\X86\X86InstrInfo.cpp:6813!</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>