public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/28920] New: vectorizer produces vector long long on powerpc-linux-gnu (and vector long on powerpc64)
@ 2006-09-01 6:31 pinskia at gcc dot gnu dot org
2007-07-09 7:35 ` [Bug tree-optimization/28920] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-01 6:31 UTC (permalink / raw)
To: gcc-bugs
Take the following testcase:
extern char lanip[3][40];
typedef struct
{
char *t[4];
}tx_typ;
int set_names (void)
{
static tx_typ tt1;
int ln;
for (ln = 0; ln < 4; ln++)
tt1.t[ln] = lanip[1];
}
-----
With -O2 -ftree-vectorize -maltivec, we produce a vector long long and we get
worse code than just doing the scalar code as VMX does not have a vector long
long mode. We really should be asking the target if we support a vector mode.
I noticed this while looking into PR 28915.
--
Summary: vectorizer produces vector long long on powerpc-linux-
gnu (and vector long on powerpc64)
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: piowerpc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28920
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/28920] vectorizer produces vector long long on powerpc-linux-gnu (and vector long on powerpc64)
2006-09-01 6:31 [Bug tree-optimization/28920] New: vectorizer produces vector long long on powerpc-linux-gnu (and vector long on powerpc64) pinskia at gcc dot gnu dot org
@ 2007-07-09 7:35 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-09 7:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-09 07:35 -------
Actually the RTL issue was fixed up by subreg2 pass.
So closing as fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28920
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-09 7:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-01 6:31 [Bug tree-optimization/28920] New: vectorizer produces vector long long on powerpc-linux-gnu (and vector long on powerpc64) pinskia at gcc dot gnu dot org
2007-07-09 7:35 ` [Bug tree-optimization/28920] " 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).