http://llvm.org/bugs/show_bug.cgi?id=7214
Summary: Assertion `Reg >= X86::FP0 && Reg <= X86::FP6 &&
"Expected FP register!"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
clang version 2.0 (trunk 104507)
OS: Ubuntu, Haiku
$ cat reg.c
long double atan2l (long double y, long double x)
{
long double res;
asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
return res;
}
clang: X86FloatingPoint.cpp:178: unsigned int getFPReg(const
llvm::MachineOperand&): Assertion `Reg >= X86::FP0 && Reg <= X86::FP6 &&
"Expected FP register!"' failed.
0 clang 0x09002658
Stack dump:
0. Program arguments: /home/stuff/download/SCM/llvm/Release/bin/clang -cc1
-triple i386-pc-linux-gnu -S -disable-free -main-file-name reg.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /home/stuff/download/SCM/llvm/Release/lib/clang/2.0
-ferror-limit 19 -fmessage-length 157 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-GDadI3.s -x c reg.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'X86 FP Stackifier' on function '@atan2l'
--
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