public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10611: [3.3/3.4] operations on vector mode not recognized
@ 2003-05-03 16:46 rguenth
  0 siblings, 0 replies; only message in thread
From: rguenth @ 2003-05-03 16:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: ehlert


>Number:         10611
>Category:       c++
>Synopsis:       [3.3/3.4] operations on vector mode not recognized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Sat May 03 16:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Richard Guenther
>Release:        gcc-3.3 (GCC) 3.3 20030427 (Debian prerelease), gcc-3.4 (GCC) 3.4 20030422 (experimental)
>Organization:
>Environment:
ia32 gnu-linux
>Description:
Operations (+ - * /, etc.) on vector modes are not recognized in c++. The following testcase works for C, but not for C++:

typedef float v4sf __attribute__((mode(V4SF)));
void foo()
{
     v4sf a, b, c;
     a = b + c;
}

bellatrix:~/src/tests$ g++-3.3 -c -msse2 simd2.cpp
 simd2.cpp: In function `void foo()':
 simd2.cpp:6: error: invalid operands of types `vector float' and `vector
 float'
    to binary `operator+'

same for gcc 3.4. I suspect this is really rejects-legal, as I see no reason that it shouldnt (but the documentation isnt clear either - vector mode extensions are within the C Extensions part).
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-03 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-03 16:46 c++/10611: [3.3/3.4] operations on vector mode not recognized rguenth

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).