This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

altivec: boring altivec.h patches


xor and andc were missing signed int and signed char variants.

committed as obvious everywhere.

2002-04-22  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/altivec.h (vec_xor): Add variant for both args
	being vector signed int.
	(vec_andc): Same.
	(vec_xor): Add variant for both args being vector signed char.
	Remove redundant variant.
	(vec_andc): Same.


Index: config/rs6000/altivec.h
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/altivec.h,v
retrieving revision 1.15
diff -c -p -r1.15 altivec.h
*** config/rs6000/altivec.h	17 Apr 2002 02:31:30 -0000	1.15
--- config/rs6000/altivec.h	22 Apr 2002 06:37:17 -0000
*************** __ch (__bin_args_eq (vector unsigned int
*** 4356,4361 ****
--- 4356,4363 ----
        ((vector unsigned int) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector signed int, (a1), vector unsigned int, (a2)), \
        ((vector unsigned int) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
+ __ch (__bin_args_eq (vector signed int, (a1), vector signed int, (a2)), \
+       ((vector signed int) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector unsigned int, (a1), vector signed int, (a2)), \
        ((vector unsigned int) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector unsigned int, (a1), vector unsigned int, (a2)), \
*************** __ch (__bin_args_eq (vector unsigned cha
*** 4384,4394 ****
        ((vector unsigned char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector unsigned char, (a1), vector unsigned char, (a2)), \
        ((vector signed char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
! __ch (__bin_args_eq (vector signed char, (a1), vector unsigned char, (a2)), \
        ((vector signed char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector unsigned char, (a1), vector signed char, (a2)), \
        ((vector signed char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
!     __altivec_link_error_invalid_argument ())))))))))))))))))))))
  
  #define vec_avg(a1, a2) \
  __ch (__bin_args_eq (vector unsigned char, (a1), vector unsigned char, (a2)), \
--- 4386,4396 ----
        ((vector unsigned char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector unsigned char, (a1), vector unsigned char, (a2)), \
        ((vector signed char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
! __ch (__bin_args_eq (vector signed char, (a1), vector signed char, (a2)), \
        ((vector signed char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
  __ch (__bin_args_eq (vector unsigned char, (a1), vector signed char, (a2)), \
        ((vector signed char) __builtin_altivec_vandc ((vector signed int) (a1), (vector signed int) (a2))), \
!     __altivec_link_error_invalid_argument ()))))))))))))))))))))))
  
  #define vec_avg(a1, a2) \
  __ch (__bin_args_eq (vector unsigned char, (a1), vector unsigned char, (a2)), \
*************** __ch (__bin_args_eq (vector float, ((a1)
*** 5337,5342 ****
--- 5339,5346 ----
        ((vector float) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector unsigned int, ((a1)), vector float, ((a2))), \
        ((vector float) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
+ __ch (__bin_args_eq (vector signed int, ((a1)), vector signed int, ((a2))), \
+       ((vector signed int) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector unsigned int, ((a1)), vector unsigned int, ((a2))), \
        ((vector unsigned int) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector signed int, ((a1)), vector unsigned int, ((a2))), \
*************** __ch (__bin_args_eq (vector unsigned cha
*** 5365,5379 ****
        ((vector unsigned char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector signed char, ((a1)), vector unsigned char, ((a2))), \
        ((vector unsigned char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
! __ch (__bin_args_eq (vector unsigned char, ((a1)), vector signed char, ((a2))), \
!       ((vector unsigned char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector unsigned char, ((a1)), vector unsigned char, ((a2))), \
        ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector signed char, ((a1)), vector unsigned char, ((a2))), \
        ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector unsigned char, ((a1)), vector signed char, ((a2))), \
        ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
!     __altivec_link_error_invalid_argument ())))))))))))))))))))))
  
  /* Predicates.  */
  
--- 5369,5383 ----
        ((vector unsigned char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector signed char, ((a1)), vector unsigned char, ((a2))), \
        ((vector unsigned char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
! __ch (__bin_args_eq (vector signed char, ((a1)), vector signed char, ((a2))), \
!       ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector unsigned char, ((a1)), vector unsigned char, ((a2))), \
        ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector signed char, ((a1)), vector unsigned char, ((a2))), \
        ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
  __ch (__bin_args_eq (vector unsigned char, ((a1)), vector signed char, ((a2))), \
        ((vector signed char) __builtin_altivec_vxor ((vector signed int) ((a1)), (vector signed int) ((a2)))), \
!     __altivec_link_error_invalid_argument ()))))))))))))))))))))))
  
  /* Predicates.  */
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]