From: Rask Ingemann Lambertsen <rask@sygehus.dk>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH 8/9] Vectorizer testsuite fixes
Date: Mon, 30 Jul 2007 19:36:00 -0000 [thread overview]
Message-ID: <20070730193449.GS25795@sygehus.dk> (raw)
In-Reply-To: <20070730134217.GK25795@sygehus.dk>
This patch allows two vectorizer tests to work on 16-bit targets by
making the vector elements of type "char". This fixes two failures on
ia16-unkonwn-elf and m32c-unknown-elf with no changes on
x86_64-unknown-linux-gnu, arm-unknown-elf, cris-axis-elf,
mipsisa64-unknown-elf, sh-unknown-elf or v850-unknown-elf. Ok for trunk?
:ADDPATCH testsuite:
2007-07-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.dg/tree-ssa/gen-vect-2.c: Use "char" for vector elements if
"int" is only 16 bit bits wide.
* gcc.dg/tree-ssa/gen-vect-11a.c: Likewise.
Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c (revision 126653)
+++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c (working copy)
@@ -5,7 +5,9 @@
#define N 16
-#if __LONG_MAX__ == 2147483647
+#if __INT_MAX__ == 32767
+typedef char half_word;
+#elif __LONG_MAX__ == 2147483647
typedef short half_word;
#else
typedef int half_word;
Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c (revision 126653)
+++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c (working copy)
@@ -5,7 +5,9 @@
#define N 16
-#if __LONG_MAX__ == 2147483647
+#if __INT_MAX__ == 32767
+typedef char half_word;
+#elif __LONG_MAX__ == 2147483647
typedef short half_word;
#else
typedef int half_word;
--
Rask Ingemann Lambertsen
next prev parent reply other threads:[~2007-07-30 19:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-30 14:37 [PATCH 0/9] New back end ia16: 16-bit Intel x86 Rask Ingemann Lambertsen
2007-07-30 14:56 ` [PATCH 1/9] New target " Rask Ingemann Lambertsen
2007-07-30 15:08 ` [PATCH 2/9] Fix reloads_unique_chain_p() missing a conflict Rask Ingemann Lambertsen
2007-08-10 8:47 ` PING " Rask Ingemann Lambertsen
2007-08-21 11:23 ` ping^2 " Rask Ingemann Lambertsen
2007-08-30 8:28 ` ping^3 [PATCH] " Rask Ingemann Lambertsen
2007-07-30 16:10 ` [PATCH 3/9] reload_reg_free(): Rask Ingemann Lambertsen
2007-08-10 8:49 ` PING [PATCH 3/9] reload_reg_free(): don't clobber inherited registers Rask Ingemann Lambertsen
2007-08-21 11:24 ` ping^2 " Rask Ingemann Lambertsen
2007-08-30 8:50 ` ping^3 [PATCH] " Rask Ingemann Lambertsen
2007-07-30 16:35 ` [PATCH 4/9] Subreg handling in reload_inner_reg_of_subreg() and push_reload() Rask Ingemann Lambertsen
2007-08-10 8:49 ` PING " Rask Ingemann Lambertsen
2007-08-21 11:29 ` ping^2 " Rask Ingemann Lambertsen
2007-08-30 8:50 ` ping^3 [PATCH] " Rask Ingemann Lambertsen
2007-07-30 17:22 ` [PATCH 5/9] Libgcc bits and the back end itself Rask Ingemann Lambertsen
2007-07-30 19:08 ` [PATCH 6/9] Documentation for the ia16 back end Rask Ingemann Lambertsen
2007-08-11 19:01 ` Joseph S. Myers
2007-07-30 19:10 ` [PATCH 7/9][wwwdocs] Mention ia16 in backends.html Rask Ingemann Lambertsen
2007-07-30 22:48 ` Gerald Pfeifer
2007-07-30 19:36 ` Rask Ingemann Lambertsen [this message]
2007-07-30 20:40 ` [PATCH 8/9] Vectorizer testsuite fixes Janis Johnson
2007-07-30 20:08 ` [PATCH 9/9] Skip or xfail some tests on ia16 Rask Ingemann Lambertsen
2007-07-30 20:51 ` Janis Johnson
2007-08-09 20:28 ` [PATCH 0/9] New back end ia16: 16-bit Intel x86 Rask Ingemann Lambertsen
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=20070730193449.GS25795@sygehus.dk \
--to=rask@sygehus.dk \
--cc=gcc-patches@gcc.gnu.org \
/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).