From: Marc Glisse <marc.glisse@inria.fr>
To: gcc-patches@gcc.gnu.org
Cc: jason@redhat.com
Subject: Re: [C++] Mixed scalar-vector operations
Date: Fri, 05 Oct 2012 19:53:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.02.1210052151440.3745@laptop-mg.saclay.inria.fr> (raw)
In-Reply-To: <alpine.DEB.2.02.1209212007140.10009@stedding.saclay.inria.fr>
Ping
http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01557.html
On Fri, 21 Sep 2012, Marc Glisse wrote:
> Hello,
>
> this patch adds mixed scalar-vector operations to the C++ front-end. It also
> adds a few operators to the C front-end (comparisons in particular). This
> patch is mostly an import from the C front-end (with the maybe_const stuff
> removed).
>
> 2012-09-22 Marc Glisse <marc.glisse@inria.fr>
>
> PR c++/54427
>
> c/
> * c-typeck.c: Include c-common.h.
> (enum stv_conv): Moved to c-common.h.
> (scalar_to_vector): Moved to c-common.c.
> * Make-lang.in: c-typeck.c depends on c-common.h.
>
> c-family/
> * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
> more operations.
> * c-common.h (enum stv_conv): Moved from c-typeck.c.
> (scalar_to_vector): Declare.
>
> cp/
> * typeck.c (cp_build_binary_op): Handle mixed scalar-vector
> operations.
> [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise.
>
> gcc/
> * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
> build_int_cst for a potential vector.
>
> testsuite/
> * c-c++-common/vector-scalar.c: New testcase.
> * g++.dg/ext/vector5.C: This is not an error anymore.
> * gcc.dg/init-vec-1.c: Move ...
> * c-c++-common/init-vec-1.c: ... here. Adapt error message.
> * gcc.c-torture/execute/vector-shift1.c: Move ...
> * c-c++-common/torture/vector-shift1.c: ... here.
> * gcc.dg/scal-to-vec1.c: Move ...
> * c-c++-common/scal-to-vec1.c: ... here. Avoid narrowing for
> C++11. Adapt error message.
> * gcc.dg/convert-vec-1.c: Move ...
> * c-c++-common/convert-vec-1.c: ... here.
> * gcc.dg/scal-to-vec2.c: Move ...
> * c-c++-common/scal-to-vec2.c: ... here.
--
Marc Glisse
next prev parent reply other threads:[~2012-10-05 19:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 20:08 Marc Glisse
2012-10-05 19:53 ` Marc Glisse [this message]
2012-10-05 21:47 ` Jason Merrill
2012-10-05 23:09 ` Marc Glisse
2012-10-06 6:05 ` Jason Merrill
2012-10-08 15:54 ` Marc Glisse
2012-10-08 17:49 ` Jason Merrill
2012-10-08 18:13 ` Mike Stump
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.02.1210052151440.3745@laptop-mg.saclay.inria.fr \
--to=marc.glisse@inria.fr \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).