https://llvm.org/bugs/show_bug.cgi?id=26625
Bug ID: 26625 Summary: Using -Os on i686: Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg Product: new-bugs Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: dimi...@andric.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified This assertion only fires when targeting the i386 architecture, with a CPU 'below' pentium4, e.g. i486 through i686, and in combination with -Os. Neither -O1 nor -O2 trigger the assertion. Reduced testcase.c: float sqrtf(float); float x0; void x1(void) { x0 = sqrtf(x0); } Compile with: clang -cc1 -triple i686 -emit-obj -Os testcase.c Results in: Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg, file /share/dim/src/llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp, line 289. Abort trap -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs