This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
altivec: typecheck vec_addc
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Apr 2002 14:44:24 +0700
- Subject: altivec: typecheck vec_addc
i'm committing this as obvious to branch and trunk.
vec_addc needs to typecheck.
2002-04-16 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/altivec.h (vec_addc): Type check.
Index: config/rs6000/altivec.h
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/altivec.h,v
retrieving revision 1.12
diff -c -p -r1.12 altivec.h
*** config/rs6000/altivec.h 23 Feb 2002 00:51:51 -0000 1.12
--- config/rs6000/altivec.h 16 Apr 2002 06:34:14 -0000
*************** __ch (__bin_args_eq (vector float, a1, v
*** 4248,4254 ****
((vector float) __builtin_altivec_vaddfp ((vector float) a1, (vector float) a2)), \
__altivec_link_error_invalid_argument ())))))))))))))
! #define vec_addc(a1, a2) ((vector unsigned int) __builtin_altivec_vaddcuw ((vector signed int) a1, (vector signed int) a2))
#define vec_adds(a1, a2) \
__ch (__bin_args_eq (vector signed char, a1, vector unsigned char, a2), \
--- 4248,4257 ----
((vector float) __builtin_altivec_vaddfp ((vector float) a1, (vector float) a2)), \
__altivec_link_error_invalid_argument ())))))))))))))
! #define vec_addc(a1, a2) \
! __ch (__bin_args_eq (vector unsigned int, a1, vector unsigned int, a2), \
! ((vector unsigned int) __builtin_altivec_vaddcuw ((vector signed int) a1, (vector signed int) a2)), \
! __altivec_link_error_invalid_argument ())
#define vec_adds(a1, a2) \
__ch (__bin_args_eq (vector signed char, a1, vector unsigned char, a2), \