diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2002-04-23 07:32:08 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2002-04-23 07:32:08 +0000 |
commit | 8d3441e0096bf053216a1c89bd13fe3d42c75251 (patch) | |
tree | 61b822891c0dae33b1b2eb1dd7aba26281b813dd | |
parent | f6f315fe1143ddf98f1eb66becabbb10aa92e0a3 (diff) | |
download | gcc-8d3441e0096bf053216a1c89bd13fe3d42c75251.zip gcc-8d3441e0096bf053216a1c89bd13fe3d42c75251.tar.gz gcc-8d3441e0096bf053216a1c89bd13fe3d42c75251.tar.bz2 |
altivec.h (vec_step): Remove extraneous parentheses.
2002-04-23 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/altivec.h (vec_step): Remove extraneous
parentheses.
(vec_ctu): Cast return.
From-SVN: r52657
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/altivec.h | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1293bf0..ec7b5e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-04-23 Aldy Hernandez <aldyh@redhat.com> + + * config/rs6000/altivec.h (vec_step): Remove extraneous + parentheses. + (vec_ctu): Cast return. + 2002-04-23 Alan Modra <amodra@bigpond.net.au> PR target/6413 diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h index 659ea38..cbe94d4 100644 --- a/gcc/config/rs6000/altivec.h +++ b/gcc/config/rs6000/altivec.h @@ -4233,13 +4233,13 @@ struct __vec_step_help<vector float> __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)) |