From fd9fdb33ae252ec34cc33675433eb56637905257 Mon Sep 17 00:00:00 2001 From: Carl Love Date: Tue, 9 Jul 2024 13:29:31 -0400 Subject: [PATCH] rs6000, Remove redundant vector float/double type conversions The following built-ins are redundant as they are covered by another overloaded built-in. __builtin_vsx_xvcvspdp covered by vec_double{e,o} __builtin_vsx_xvcvdpsp covered by vec_float{e,o} __builtin_vsx_xvcvsxwdp covered by vec_double{e,o} __builtin_vsx_xvcvuxddp_uns covered by vec_double Remove the redundant built-ins. They are not documented nor do they have test cases. gcc/ChangeLog: * config/rs6000/rs6000-builtins.def (__builtin_vsx_xvcvspdp, __builtin_vsx_xvcvdpsp, __builtin_vsx_xvcvsxwdp, __builtin_vsx_xvcvuxddp_uns): Remove. --- gcc/config/rs6000/rs6000-builtins.def | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gcc/config/rs6000/rs6000-builtins.def b/gcc/config/rs6000/rs6000-builtins.def index 5f353f5faeb..cd629c65498 100644 --- a/gcc/config/rs6000/rs6000-builtins.def +++ b/gcc/config/rs6000/rs6000-builtins.def @@ -1679,9 +1679,6 @@ const signed int __builtin_vsx_xvcmpgtsp_p (signed int, vf, vf); XVCMPGTSP_P vector_gt_v4sf_p {pred} - const vf __builtin_vsx_xvcvdpsp (vd); - XVCVDPSP vsx_xvcvdpsp {} - const vsll __builtin_vsx_xvcvdpsxds (vd); XVCVDPSXDS vsx_fix_truncv2dfv2di2 {} @@ -1694,9 +1691,6 @@ const vsll __builtin_vsx_xvcvdpuxds_scale (vd, const int); XVCVDPUXDS_SCALE vsx_xvcvdpuxds_scale {} - const vd __builtin_vsx_xvcvspdp (vf); - XVCVSPDP vsx_xvcvspdp {} - const vsll __builtin_vsignede_v4sf (vf); VEC_VSIGNEDE_V4SF vsignede_v4sf {} @@ -1718,9 +1712,6 @@ const vf __builtin_vsx_xvcvsxdsp (vsll); XVCVSXDSP vsx_xvcvsxdsp {} - const vd __builtin_vsx_xvcvsxwdp (vsi); - XVCVSXWDP vsx_xvcvsxwdp {} - const vf __builtin_vsx_xvcvsxwsp (vsi); XVCVSXWSP vsx_floatv4siv4sf2 {} @@ -1730,9 +1721,6 @@ const vd __builtin_vsx_xvcvuxddp_scale (vsll, const int<5>); XVCVUXDDP_SCALE vsx_xvcvuxddp_scale {} - const vd __builtin_vsx_xvcvuxddp_uns (vull); - XVCVUXDDP_UNS vsx_floatunsv2div2df2 {} - const vf __builtin_vsx_xvcvuxdsp (vull); XVCVUXDSP vsx_xvcvuxdsp {} -- 2.47.2