This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 8/9] Vectorizer testsuite fixes


   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]