From ffa5c9bc56796a7407c3da7b5834593cdc27e9f0 Mon Sep 17 00:00:00 2001 From: aldyh Date: Tue, 16 Apr 2002 06:40:40 +0000 Subject: [PATCH] 2002-04-16 Aldy Hernandez * config/rs6000/altivec.h (vec_addc): Type check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52360 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/altivec.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e9810c374f..58b4b087a94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-04-16 Aldy Hernandez + + * config/rs6000/altivec.h (vec_addc): Type check. + 2002-04-16 Jakub Jelinek PR target/6303 diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h index 589587ed67b..b7076b8138f 100644 --- a/gcc/config/rs6000/altivec.h +++ b/gcc/config/rs6000/altivec.h @@ -4248,7 +4248,10 @@ __ch (__bin_args_eq (vector float, a1, vector float, a2), \ ((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_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), \ -- 2.11.4.GIT