public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
@ 2003-12-18 11:51 ` pinskia at gcc dot gnu dot org
2004-04-29 19:44 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-18 11:51 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-03 04:13:40 |2003-12-18 10:58:12
date| |
Target Milestone|3.4.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
2003-12-18 11:51 ` [Bug c++/10611] operations on vector mode not recognized in C++ pinskia at gcc dot gnu dot org
@ 2004-04-29 19:44 ` pinskia at gcc dot gnu dot org
2004-07-23 14:22 ` dylan at q-games dot com
` (11 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-29 19:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-29 19:37 -------
*** Bug 15208 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ahu at ds9a dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
2003-12-18 11:51 ` [Bug c++/10611] operations on vector mode not recognized in C++ pinskia at gcc dot gnu dot org
2004-04-29 19:44 ` pinskia at gcc dot gnu dot org
@ 2004-07-23 14:22 ` dylan at q-games dot com
2005-01-12 9:44 ` rguenth at tat dot physik dot uni-tuebingen dot de
` (10 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: dylan at q-games dot com @ 2004-07-23 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dylan at q-games dot com 2004-07-23 14:22 -------
I seem to have gotten this working to some extent by doing the following:
This is just a quick hack but is it the right direction? If so, I can tidy it
up and fix the side-effects. (or someone else with more knowledge of the
internals of gcc/cp can)
cp/cp-tree.h, change the ARITHMETIC_TYPE_P define to:
#define ARITHMETIC_TYPE_P(TYPE) \
(CP_INTEGRAL_TYPE_P (TYPE) || TREE_CODE (TYPE) == REAL_TYPE || TREE_CODE
(TYPE) == VECTOR_TYPE )
and
cp/typeck.c, function build_binary_op
** CHANGE **
if ((code0 == INTEGER_TYPE || code0 == REAL_TYPE || code0 == COMPLEX_TYPE)
&&
(code1 == INTEGER_TYPE || code1 == REAL_TYPE || code1 == COMPLEX_TYPE))
{
int none_complex = (code0 != COMPLEX_TYPE && code1 != COMPLEX_TYPE);
** TO **
if ((code0 == INTEGER_TYPE || code0 == REAL_TYPE || code0 == COMPLEX_TYPE ||
code0 == VECTOR_TYPE)
&&
(code1 == INTEGER_TYPE || code1 == REAL_TYPE || code1 == COMPLEX_TYPE ||
code1 == VECTOR_TYPE))
{
int none_complex = (code0 != COMPLEX_TYPE && code1 != COMPLEX_TYPE &&
code0 != VECTOR_TYPE && code1 != VECTOR_TYPE );
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (2 preceding siblings ...)
2004-07-23 14:22 ` dylan at q-games dot com
@ 2005-01-12 9:44 ` rguenth at tat dot physik dot uni-tuebingen dot de
2005-01-13 22:36 ` wilson at specifixinc dot com
` (9 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2005-01-12 9:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2005-01-12 09:44 -------
What is the status on this issue? I.e. +,-,*,/ on vector types for C++? Note
that trying to work around this missing feature with operator overloading like
v4sf operator+(const v4sf& a, const v4sf& b)
{
return __builtin_ia32_addps(a, b);
}
(which would be again machine specific, but anyhow) doesn't work:
t.c:3: error: 'float __vector__ operator+(const float __vector__&, const float
__vector__&)' must have an argument of class or enumerated type.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (3 preceding siblings ...)
2005-01-12 9:44 ` rguenth at tat dot physik dot uni-tuebingen dot de
@ 2005-01-13 22:36 ` wilson at specifixinc dot com
2005-01-14 1:42 ` dylan at q-games dot com
` (8 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: wilson at specifixinc dot com @ 2005-01-13 22:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at specifixinc dot com 2005-01-13 22:36 -------
Subject: Re: operations on vector mode not recognized in C++
On Wed, 2005-01-12 at 01:44, rguenth at tat dot physik dot uni-tuebingen
dot de wrote:
> ------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2005-01-12 09:44 -------
> What is the status on this issue?
It is waiting for someone who works on the C++ FE to look at it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (4 preceding siblings ...)
2005-01-13 22:36 ` wilson at specifixinc dot com
@ 2005-01-14 1:42 ` dylan at q-games dot com
2005-06-10 17:36 ` cvs-commit at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: dylan at q-games dot com @ 2005-01-14 1:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dylan at q-games dot com 2005-01-14 01:41 -------
I am implementing this locally to gcc 3.3.3, if it all seems to work ok I will
attach the patches to this bug in a month or so (it's slow careful work). It's
interesting because the side effect is the math optimizing pass of g++ begins
to work with vector registers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (5 preceding siblings ...)
2005-01-14 1:42 ` dylan at q-games dot com
@ 2005-06-10 17:36 ` cvs-commit at gcc dot gnu dot org
2005-06-11 0:16 ` cvs-commit at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-10 17:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-10 17:35 -------
Subject: Bug 10611
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: aldyh@gcc.gnu.org 2005-06-10 17:35:37
Modified files:
gcc/cp : ChangeLog cvt.c typeck.c
Added files:
gcc/testsuite/g++.dg/conversion: simd2.C
Log message:
PR c++/10611
* cvt.c (build_expr_type_conversion): Same.
* typeck.c (build_binary_op): Handle vectors.
(common_type): Same.
(type_after_usual_arithmetic_conversions): Same.
* testsuite/g++.dg/conversion/simd2.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4783&r2=1.4784
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&r1=1.181&r2=1.182
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.633&r2=1.634
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/simd2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (6 preceding siblings ...)
2005-06-10 17:36 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-11 0:16 ` cvs-commit at gcc dot gnu dot org
2005-06-11 0:20 ` aldyh at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-11 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-11 00:16 -------
Subject: Bug 10611
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: aldyh@gcc.gnu.org 2005-06-11 00:16:03
Modified files:
gcc/cp : ChangeLog cvt.c typeck.c
Added files:
gcc/testsuite/g++.dg/conversion: simd2.C
Log message:
PR c++/10611
* cp/cvt.c (build_expr_type_conversion): Same.
* cp/typeck.c (build_binary_op): Handle vectors.
(common_type): Same.
(type_after_usual_arithmetic_conversions): Same.
* testsuite/g++.dg/conversion/simd2.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.224&r2=1.3892.2.225
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.151.4.3&r2=1.151.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.519.2.28&r2=1.519.2.29
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/simd2.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (7 preceding siblings ...)
2005-06-11 0:16 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-11 0:20 ` aldyh at gcc dot gnu dot org
2005-06-11 14:13 ` bert dot hubert at netherlabs dot nl
` (4 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-06-11 0:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aldyh at gcc dot gnu dot org 2005-06-11 00:20 -------
Fixed on mainline. Backported to 3.4. 4.0 patch will be committed once the
branch is opened.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (8 preceding siblings ...)
2005-06-11 0:20 ` aldyh at gcc dot gnu dot org
@ 2005-06-11 14:13 ` bert dot hubert at netherlabs dot nl
2005-06-14 19:40 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: bert dot hubert at netherlabs dot nl @ 2005-06-11 14:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bert dot hubert at netherlabs dot nl 2005-06-11 14:13 -------
Subject: Re: operations on vector mode not recognized in C++
Updated http://ds9a.nl/gcc-simd/ to this effect, thanks.
On Sat, Jun 11, 2005 at 12:20:03AM -0000, aldyh at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From aldyh at gcc dot gnu dot org 2005-06-11 00:20 -------
> Fixed on mainline. Backported to 3.4. 4.0 patch will be committed once the
> branch is opened.
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|ASSIGNED |RESOLVED
> Resolution| |FIXED
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
>
> !DSPAM:42aa2e35254161288245759!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (9 preceding siblings ...)
2005-06-11 14:13 ` bert dot hubert at netherlabs dot nl
@ 2005-06-14 19:40 ` pinskia at gcc dot gnu dot org
2005-07-11 7:54 ` dirtyepic dot sk at gmail dot com
` (2 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-14 19:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (10 preceding siblings ...)
2005-06-14 19:40 ` pinskia at gcc dot gnu dot org
@ 2005-07-11 7:54 ` dirtyepic dot sk at gmail dot com
2005-07-11 14:26 ` cvs-commit at gcc dot gnu dot org
2005-07-11 15:44 ` aldyh at gcc dot gnu dot org
13 siblings, 0 replies; 14+ messages in thread
From: dirtyepic dot sk at gmail dot com @ 2005-07-11 7:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dirtyepic dot sk at gmail dot com 2005-07-11 06:24 -------
Has this been backported to the 4.0 branch now that it's open again?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (11 preceding siblings ...)
2005-07-11 7:54 ` dirtyepic dot sk at gmail dot com
@ 2005-07-11 14:26 ` cvs-commit at gcc dot gnu dot org
2005-07-11 15:44 ` aldyh at gcc dot gnu dot org
13 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-11 14:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-11 14:24 -------
Subject: Bug 10611
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: aldyh@gcc.gnu.org 2005-07-11 14:24:07
Modified files:
gcc/cp : ChangeLog cvt.c typeck.c
Added files:
gcc/testsuite/g++.dg/conversion: simd2.C
Log message:
PR c++/10611
* cp/cvt.c (build_expr_type_conversion): Same.
* cp/typeck.c (build_binary_op): Handle vectors.
(common_type): Same.
(type_after_usual_arithmetic_conversions): Same.
* testsuite/g++.dg/conversion/simd2.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.62&r2=1.4648.2.63
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.180&r2=1.180.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.616.2.10&r2=1.616.2.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/simd2.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.8.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/10611] operations on vector mode not recognized in C++
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
` (12 preceding siblings ...)
2005-07-11 14:26 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-11 15:44 ` aldyh at gcc dot gnu dot org
13 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-07-11 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aldyh at gcc dot gnu dot org 2005-07-11 14:42 -------
I have just backported to the 4.0 branch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-07-11 14:42 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20030503164601.10611.rguenth@tat.physik.uni-tuebingen.de>
2003-12-18 11:51 ` [Bug c++/10611] operations on vector mode not recognized in C++ pinskia at gcc dot gnu dot org
2004-04-29 19:44 ` pinskia at gcc dot gnu dot org
2004-07-23 14:22 ` dylan at q-games dot com
2005-01-12 9:44 ` rguenth at tat dot physik dot uni-tuebingen dot de
2005-01-13 22:36 ` wilson at specifixinc dot com
2005-01-14 1:42 ` dylan at q-games dot com
2005-06-10 17:36 ` cvs-commit at gcc dot gnu dot org
2005-06-11 0:16 ` cvs-commit at gcc dot gnu dot org
2005-06-11 0:20 ` aldyh at gcc dot gnu dot org
2005-06-11 14:13 ` bert dot hubert at netherlabs dot nl
2005-06-14 19:40 ` pinskia at gcc dot gnu dot org
2005-07-11 7:54 ` dirtyepic dot sk at gmail dot com
2005-07-11 14:26 ` cvs-commit at gcc dot gnu dot org
2005-07-11 15:44 ` aldyh 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).