diff options
author | Rask Ingemann Lambertsen <rask@sygehus.dk> | 2007-08-02 10:51:54 +0200 |
---|---|---|
committer | Rask Ingemann Lambertsen <rask@gcc.gnu.org> | 2007-08-02 08:51:54 +0000 |
commit | a15da80d336a43788411f1da71059303d77f9a6d (patch) | |
tree | ceb8c4ee48b42fcce3051b1d899b55b82d28284a /gcc | |
parent | c7fd8cd8e2ff04b02c2c398de3dd0b463240791f (diff) | |
download | gcc-a15da80d336a43788411f1da71059303d77f9a6d.zip gcc-a15da80d336a43788411f1da71059303d77f9a6d.tar.gz gcc-a15da80d336a43788411f1da71059303d77f9a6d.tar.bz2 |
gen-vect-2.c: Use "char" for vector elements if "int" is only 16 bit bits wide.
* 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.
From-SVN: r127152
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c | 4 |
3 files changed, 12 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7e9392b..a03a6d1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-08-02 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. + 2007-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * g++.dg/torture/type-generic-1.C: New. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c index 7fbbc0c..e7c5f4a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c index 8bee152..ae2f031 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c @@ -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; |