[llvm-bugs] [Bug 26625] New: Using -Os on i686: Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 15 12:18:12 PST 2016
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: unassignedbugs at nondot.org
Reporter: dimitry at andric.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160215/771d6983/attachment.html>
More information about the llvm-bugs
mailing list