diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2009-04-15 09:34:37 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2009-04-15 09:34:37 +0000 |
commit | 5afaa917dac97e43afb9f2b6a590b30973d85e21 (patch) | |
tree | 35e1ab2456618de07656e58f1560d05a0ec3709f /gcc/testsuite | |
parent | f7ca1d041c1766a16a016d959395370bea93d069 (diff) | |
download | gcc-5afaa917dac97e43afb9f2b6a590b30973d85e21.zip gcc-5afaa917dac97e43afb9f2b6a590b30973d85e21.tar.gz gcc-5afaa917dac97e43afb9f2b6a590b30973d85e21.tar.bz2 |
rs6000.c (rs6000_init_builtins): Set TYPE_NAME of our distinct integral and vector types.
./ * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
our distinct integral and vector types.
testsuite/
* g++.dg/ext/altivec-17.C: New.
From-SVN: r146092
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/altivec-17.C | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f55193f..a6e9bf7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-04-15 Nathan Sidwell <nathan@codesourcery.com> + + * g++.dg/ext/altivec-17.C: New. + 2009-04-15 Arnaud Charlet <charlet@adacore.com> * gnat.dg/sync1.ads: Fix error now flagged by gnat. diff --git a/gcc/testsuite/g++.dg/ext/altivec-17.C b/gcc/testsuite/g++.dg/ext/altivec-17.C new file mode 100644 index 0000000..7db10e5 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/altivec-17.C @@ -0,0 +1,16 @@ +// { dg-do compile { target powerpc*-*-* } } +// { dg-require-effective-target powerpc_altivec_ok } +// { dg-options "-maltivec" } + +// Make sure that bool vectors have distinct names to int vectors + +#define vector__ __attribute__((altivec (vector__))) +#define bool__ __attribute__((altivec(bool__))) + +typedef vector__ unsigned int simd_type; +typedef vector__ bool__ int bool_simd_type; + +void Foo (bool_simd_type const &a) +{ + simd_type const &v = a; // { dg-error "'const unsigned int __vector__&' from expression of type 'const __bool int __vector__'" } +} |