From: Aldy Hernandez Date: Tue, 23 Apr 2002 07:32:08 +0000 (+0000) Subject: altivec.h (vec_step): Remove extraneous parentheses. X-Git-Tag: releases/gcc-3.3.0~5525 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d3441e0096bf053216a1c89bd13fe3d42c75251;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1293bf0b7e33..ec7b5e4ebc7d 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 659ea382101b..cbe94d47d2e3 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))