[LLVMbugs] [Bug 7214] New: Assertion `Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 24 09:48:16 PDT 2010


           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: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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.

More information about the llvm-bugs mailing list