http://llvm.org/bugs/show_bug.cgi?id=14707
Bug #: 14707
Summary: fptoui crash
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 9760
--> http://llvm.org/bugs/attachment.cgi?id=9760
sample code
The attached LLVM assembly file causes lli to crash on Windows XP 32 bits.
The function
define internal i32 @Addr_002CB450(double) {
%retvalue = fptoui double %0 to i32
ret i32 %retvalue
}
is being translated to
_Addr_002CB450: # @Addr_002CB450
# BB#0:
pushl %ebp
movl %esp, %ebp
andl $-8, %esp
subl $16, %esp
movsd 8(%ebp), %xmm0
movsd %xmm0, 8(%esp)
fldl 8(%esp)
calll __ftol2
movl %ebp, %esp
popl %ebp
ret
(note the call to __ftol2, so there is a integer size mismatch)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs