This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
altivec regression fix
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Feb 2002 19:11:34 +1100
- Subject: altivec regression fix
predicates changed. testcase should change too.
commited as obvious.
2002-02-05 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/altivec-4.c: AltiVec builtin predicates changed format.
Fix testcase accordingly.
Index: testsuite/gcc.dg/altivec-4.c
===================================================================
RCS file: /cvs/uberbaum/gcc/testsuite/gcc.dg/altivec-4.c,v
retrieving revision 1.5
diff -c -p -r1.5 altivec-4.c
*** altivec-4.c 2002/01/11 03:30:50 1.5
--- altivec-4.c 2002/02/05 08:10:01
***************
*** 5,11 ****
static int __attribute__((mode(V4SI))) x, y;
! static vector signed int i,j,k;
static vector signed short s,t;
static vector signed char c,d;
static vector float f,g;
--- 5,11 ----
static int __attribute__((mode(V4SI))) x, y;
! static vector signed int i,j;
static vector signed short s,t;
static vector signed char c,d;
static vector float f,g;
*************** b()
*** 23,41 ****
/* Make sure the predicates accept correct argument types. */
! k = __builtin_altivec_vcmpbfp_p (f, g);
! k = __builtin_altivec_vcmpeqfp_p (f, g);
! k = __builtin_altivec_vcmpequb_p (c, d);
! k = __builtin_altivec_vcmpequh_p (s, t);
! k = __builtin_altivec_vcmpequw_p (i, j);
! k = __builtin_altivec_vcmpgefp_p (f, g);
! k = __builtin_altivec_vcmpgtfp_p (f, g);
! k = __builtin_altivec_vcmpgtsb_p (c, d);
! k = __builtin_altivec_vcmpgtsh_p (s, t);
! k = __builtin_altivec_vcmpgtsw_p (i, j);
! k = __builtin_altivec_vcmpgtub_p (c, d);
! k = __builtin_altivec_vcmpgtuh_p (s, t);
! k = __builtin_altivec_vcmpgtuw_p (i, j);
__builtin_altivec_mtvscr (i);
__builtin_altivec_dssall ();
--- 23,41 ----
/* Make sure the predicates accept correct argument types. */
! int1 = __builtin_altivec_vcmpbfp_p (0, f, g);
! int1 = __builtin_altivec_vcmpeqfp_p (0, f, g);
! int1 = __builtin_altivec_vcmpequb_p (0, c, d);
! int1 = __builtin_altivec_vcmpequh_p (0, s, t);
! int1 = __builtin_altivec_vcmpequw_p (0, i, j);
! int1 = __builtin_altivec_vcmpgefp_p (0, f, g);
! int1 = __builtin_altivec_vcmpgtfp_p (0, f, g);
! int1 = __builtin_altivec_vcmpgtsb_p (0, c, d);
! int1 = __builtin_altivec_vcmpgtsh_p (0, s, t);
! int1 = __builtin_altivec_vcmpgtsw_p (0, i, j);
! int1 = __builtin_altivec_vcmpgtub_p (0, c, d);
! int1 = __builtin_altivec_vcmpgtuh_p (0, s, t);
! int1 = __builtin_altivec_vcmpgtuw_p (0, i, j);
__builtin_altivec_mtvscr (i);
__builtin_altivec_dssall ();