[llvm-bugs] [Bug 35767] New: Crash with alloca swifterror
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 28 05:10:11 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35767
Bug ID: 35767
Summary: Crash with alloca swifterror
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: llvm-dev at redking.me.uk
CC: llvm-bugs at lists.llvm.org
Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4805
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!
--
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/20171228/e3400a77/attachment.html>
More information about the llvm-bugs
mailing list