From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20962 invoked by alias); 3 May 2003 16:46:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20939 invoked by uid 71); 3 May 2003 16:46:01 -0000 Resent-Date: 3 May 2003 16:46:01 -0000 Resent-Message-ID: <20030503164601.20938.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, ehlert@gris.uni-tuebingen.de Resent-Reply-To: gcc-gnats@gcc.gnu.org, rguenth@tat.physik.uni-tuebingen.de Received: (qmail 18938 invoked by uid 48); 3 May 2003 16:42:03 -0000 Message-Id: <20030503164203.18937.qmail@sources.redhat.com> Date: Sat, 03 May 2003 16:46:00 -0000 From: rguenth@tat.physik.uni-tuebingen.de Reply-To: rguenth@tat.physik.uni-tuebingen.de To: gcc-gnats@gcc.gnu.org Cc: ehlert@gris.uni-tuebingen.de X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: ehlert@gris.uni-tuebingen.de Subject: c++/10611: [3.3/3.4] operations on vector mode not recognized X-SW-Source: 2003-05/txt/msg00207.txt.bz2 List-Id: >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: