public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21465] New: autovectorisation conflicts with -ffast-math
@ 2005-05-09 10:27 micis at gmx dot de
2005-05-09 12:24 ` [Bug tree-optimization/21465] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: micis at gmx dot de @ 2005-05-09 10:27 UTC (permalink / raw)
To: gcc-bugs
Consider the following short function:
void Tst1(float* __restrict__ SrcP, float* __restrict__ DstP, int Len)
{
for (int x=0; x<Len; x++)
{
DstP[x] = SrcP[x] * SrcP[x];
}
}
If this function is compiled with:
g++41 -O -S TstPow.cpp -ftree-vectorizer-verbose=5 -ftree-vectorize
it is vectorized, but if you compile with:
g++41 -O -ffast-math -S TstPow.cpp -ftree-vectorizer-verbose=5
-ftree-vectorize
it is not with the following output:
note: Vectorizing an unaligned access.
note: Alignment of access forced using peeling.
note: not vectorized: stmt not supported: D.2052_15 = __builtin_powf
(D.2051_14, 2.0e+0)
note: vectorized 0 loops in function.
Michael Cieslinski
--
Summary: autovectorisation conflicts with -ffast-math
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: micis at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21465
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/21465] autovectorisation conflicts with -ffast-math
2005-05-09 10:27 [Bug tree-optimization/21465] New: autovectorisation conflicts with -ffast-math micis at gmx dot de
@ 2005-05-09 12:24 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 12:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-09 12:21 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2005-05-09 12:21:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21465
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-09 12:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 10:27 [Bug tree-optimization/21465] New: autovectorisation conflicts with -ffast-math micis at gmx dot de
2005-05-09 12:24 ` [Bug tree-optimization/21465] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).