[LLVMbugs] [Bug 9126] New: __float128 crashes the compiler / optimizer
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 2 11:29:42 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9126
Summary: __float128 crashes the compiler / optimizer
Product: dragonegg
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: larrybartholdi at yahoo.com
CC: llvmbugs at cs.uiuc.edu
I've heard about llvm only 10 minutes ago, and tried something on the website's
"online compiler" 5 minutes ago:
#include <stdio.h>
#include <stdlib.h>
__float128 factorial(__float128 X) {
if (X == 0.0) return 1.0;
return X*factorial(X-1);
}
int main(int argc, char **argv) {
printf("%LLg\n", factorial(atoi(argv[1])));
}
(I had initially tried float128 and _float128 types, which don't seem to be
recognized at all).
This crashes the compiler / optimizer:
/tmp/webcompile/_22203_0.c: In function 'factorial':
/tmp/webcompile/_22203_0.c:4: internal compiler error: Segmentation fault
--
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.
More information about the llvm-bugs
mailing list