[ver2,3/4] rs6000, Remove redundant built-in __builtin_vsx_xvcvuxwdp

Message ID 0b5eff4f-ca81-49b8-aaa7-5f5cec1881f6@linux.ibm.com
State New
Headers
Series rs6000, remove redundant built-ins and add more test cases |

Commit Message

Carl Love Oct. 1, 2024, 3:27 p.m. UTC
  GCC maintainers:

Version 2: Fixed the wording in the changelog per the feedback. With 
this change the patch was approved by Kewen.

The patch removed the built-in __builtin_vsx_xvcvuxwdp as it is covered 
by the overloaded vec_doubleo built-in.

The patch has been tested on Power 10 LE and BE with no regressions.

Please let me know if it is acceptable for mainline.  Thanks.

                       Carl


----------------------------------------------------------------------------------------
rs6000, Remove redundant built-in __builtin_vsx_xvcvuxwdp

The built-in __builtin_vsx_xvcvuxwdp can be covered with PVIPR
function vec_doubleo on LE and vec_doublee on BE.  There are no test
cases or documentation for __builtin_vsx_xvcvuxwdp.  This patch
removes the redundant built-in.

gcc/ChangeLog:
     * config/rs6000/rs6000-builtins.def (__builtin_vsx_xvcvuxwdp):
     Remove built-in definition.
---
  gcc/config/rs6000/rs6000-builtins.def | 3 ---
  1 file changed, 3 deletions(-)
  

Patch

diff --git a/gcc/config/rs6000/rs6000-builtins.def 
b/gcc/config/rs6000/rs6000-builtins.def
index adb4fe761f3..7350b913d03 100644
--- a/gcc/config/rs6000/rs6000-builtins.def
+++ b/gcc/config/rs6000/rs6000-builtins.def
@@ -1616,9 +1616,6 @@ 
    const vf __builtin_vsx_xvcvuxdsp (vull);
      XVCVUXDSP vsx_xvcvuxdsp {}

-  const vd __builtin_vsx_xvcvuxwdp (vsi);
-    XVCVUXWDP vsx_xvcvuxwdp {}
-
    const vf __builtin_vsx_xvcvuxwsp (vsi);
      XVCVUXWSP vsx_floatunsv4siv4sf2 {}