From 8d3441e0096bf053216a1c89bd13fe3d42c75251 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Tue, 23 Apr 2002 07:32:08 +0000 Subject: [PATCH] altivec.h (vec_step): Remove extraneous parentheses. 2002-04-23 Aldy Hernandez * config/rs6000/altivec.h (vec_step): Remove extraneous parentheses. (vec_ctu): Cast return. From-SVN: r52657 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/altivec.h | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1293bf0b7e3..ec7b5e4ebc7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-04-23 Aldy Hernandez + + * config/rs6000/altivec.h (vec_step): Remove extraneous + parentheses. + (vec_ctu): Cast return. + 2002-04-23 Alan Modra PR target/6413 diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h index 659ea382101..cbe94d47d2e 100644 --- a/gcc/config/rs6000/altivec.h +++ b/gcc/config/rs6000/altivec.h @@ -4233,13 +4233,13 @@ struct __vec_step_help __altivec_link_error_invalid_argument ()))) #define vec_step(t) \ - __ch (__builtin_types_compatible_p ((t), vector signed int), 4, \ - __ch (__builtin_types_compatible_p ((t), vector unsigned int), 4, \ - __ch (__builtin_types_compatible_p ((t), vector signed short), 8, \ - __ch (__builtin_types_compatible_p ((t), vector unsigned short), 8, \ - __ch (__builtin_types_compatible_p ((t), vector signed char), 16, \ - __ch (__builtin_types_compatible_p ((t), vector unsigned char), 16, \ - __ch (__builtin_types_compatible_p ((t), vector float), 4, \ + __ch (__builtin_types_compatible_p (t, vector signed int), 4, \ + __ch (__builtin_types_compatible_p (t, vector unsigned int), 4, \ + __ch (__builtin_types_compatible_p (t, vector signed short), 8, \ + __ch (__builtin_types_compatible_p (t, vector unsigned short), 8, \ + __ch (__builtin_types_compatible_p (t, vector signed char), 16, \ + __ch (__builtin_types_compatible_p (t, vector unsigned char), 16, \ + __ch (__builtin_types_compatible_p (t, vector float), 4, \ __altivec_link_error_invalid_argument ()))))))) #define vec_add(a1, a2) \ @@ -4477,7 +4477,7 @@ __ch (__bin_args_eq (vector signed int, (a1), int, (a2)), \ #define vec_cts(a1, a2) __builtin_altivec_vctsxs ((a1), (a2)) -#define vec_ctu(a1, a2) __builtin_altivec_vctuxs ((a1), (a2)) +#define vec_ctu(a1, a2) (vector unsigned int) __builtin_altivec_vctuxs ((a1), (a2)) #define vec_dss(a1) __builtin_altivec_dss ((a1)) -- 2.30.2