Summary: | redundant instructions with long double returned value | ||
---|---|---|---|
Product: | gcc | Reporter: | Yuri <yuri> |
Component: | target | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | ||
Version: | 4.4.1 | ||
Target Milestone: | --- | ||
Host: | Target: | i?86-*-* | |
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Yuri
2009-09-24 17:23:58 UTC
Forgot to mention: 32-bit mode on i586 CPU. (In reply to comment #0) > There are two redundant FPU instructions there. double value is already in FPU > after fldt. No need to store it and load it back since difference between > double and long double is only in memory representation, and in FPU registers > they are the same. No, they are not. These instructions implement FP truncation from long-double to double. Try to compile your code with -ffast-math. |