diff options
author | Janis Johnson <janis187@us.ibm.com> | 2004-12-03 17:37:12 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2004-12-03 17:37:12 +0000 |
commit | 5edea4c66480239d8a6c75ca976af634ea6d1253 (patch) | |
tree | b0b8dfe81e2fb7a23266d9c665511f8c00687417 /gcc | |
parent | 9c7956fd00a3e064d98ac51090cbe5aa55b9336c (diff) | |
download | gcc-5edea4c66480239d8a6c75ca976af634ea6d1253.zip gcc-5edea4c66480239d8a6c75ca976af634ea6d1253.tar.gz gcc-5edea4c66480239d8a6c75ca976af634ea6d1253.tar.bz2 |
extend.texi (AltiVec Builtins): Fix info about signedness.
* doc/extend.texi (AltiVec Builtins): Fix info about signedness.
* testsuite/gcc.dg/altivec-18.c: Fix for darwin
From-SVN: r91688
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 7 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/altivec-18.c | 7 |
4 files changed, 16 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2aab1af..a397f59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-12-03 Janis Johnson <janis187@us.ibm.com> + + * doc/extend.texi (AltiVec Builtins): Fix info about signedness. + 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch> * config/rs6000/rs6000.c (rs6000_override_options): Protect diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f4134b1..8a3decd 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -6620,9 +6620,10 @@ A vector initializer requires no cast if the vector constant is of the same type as the variable it is initializing. @item -If @code{signed} or @code{unsigned} is omitted, the vector type defaults -to @code{signed} for @code{vector int} or @code{vector short} and to -@code{unsigned} for @code{vector char}. +If @code{signed} or @code{unsigned} is omitted, the signedness of the +vector type is the default signedness of the base type. The default +varies depending on the operating system, so a portable program should +always specify the signedness. @item Compiling with @option{-maltivec} adds keywords @code{__vector}, diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7f6dc12..eba1f1e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-12-03 Janis Johnson <janis187@us.ibm.com> + + * gcc.dg/altivec-18.c: Fix for darwin + 2004-12-03 Nathan Sidwell <nathan@codesourcery.com> PR c++/18782 diff --git a/gcc/testsuite/gcc.dg/altivec-18.c b/gcc/testsuite/gcc.dg/altivec-18.c index af5687e..9a3ee33 100644 --- a/gcc/testsuite/gcc.dg/altivec-18.c +++ b/gcc/testsuite/gcc.dg/altivec-18.c @@ -1,13 +1,14 @@ /* { dg-do compile { target powerpc*-*-* } } */ /* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */ /* { dg-options "-maltivec -mabi=altivec" } */ -/* { dg-final { scan-assembler "vcmpgtub" } } */ +/* { dg-final { scan-assembler "vcmpgtub" { target *-*-linux* } } } */ +/* { dg-final { scan-assembler "vcmpgtsb" { target *-*-darwin* } } } */ /* { dg-final { scan-assembler "vcmpgtsh" } } */ /* { dg-final { scan-assembler "vcmpgtsw" } } */ /* Verify a statement in the GCC Manual that vector type specifiers can - omit "signed" or "unsigned", with the default being "signed" for int - and short, and "unsigned" for char. */ + omit "signed" or "unsigned". The default is the default signedness + of the base type, which differs depending on the ABI. */ #include <altivec.h> |