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
This commit is contained in:
parent
9c7956fd00
commit
5edea4c664
@ -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
|
||||
|
@ -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},
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user