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

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 15 16:08:24 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5505

           Summary: Assertion failed: Reg >= X86::FP0 && Reg <= X86::FP6 &&
                    "Expected FP register!"
           Product: compiler-rt
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: compiler-rt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sherpya at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I've got this error while compiling atan2f.c from mingw runtime with -O >= 1
with -O0 works fine:

Assertion failed: Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP
register!",
 file c:/proj/llvm/src/lib/Target/X86/X86FloatingPoint.cpp, line 179

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
atan2f.c:15: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.

test case:
#include <math.h>

float
atan2f (float y, float x)
{
  float res;
  asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
  return res;
}


-- 
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