OSDN Git Service

* doc/extend.texi (AltiVec Builtins): Fix info about signedness.
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 2004 17:37:12 +0000 (17:37 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 2004 17:37:12 +0000 (17:37 +0000)
* testsuite/gcc.dg/altivec-18.c: Fix for darwin

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91688 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/altivec-18.c

index 2aab1af..a397f59 100644 (file)
@@ -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
index f4134b1..8a3decd 100644 (file)
@@ -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},
index 7f6dc12..eba1f1e 100644 (file)
@@ -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
index af5687e..9a3ee33 100644 (file)
@@ -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>