[glibc] x86: Remove unused VZEROUPPER_SHORT_RETURN macro from memset

Adhemerval Zanella via Glibc-cvs <[email protected]> Fri, 3 Jul 2026 23:34:35 +0000 (GMT)
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2077c0e3856df4fa749038c4cebfb3058487b6b3

commit 2077c0e3856df4fa749038c4cebfb3058487b6b3
Author: RyotaSaito <[email protected]>
Date:   Wed Jul 1 16:20:34 2026 +0900

    x86: Remove unused VZEROUPPER_SHORT_RETURN macro from memset
    
    The VZEROUPPER_SHORT_RETURN macro in memset-vec-unaligned-erms.S has had
    no users since commit e59ced238482 ("x86: Optimize
    memset-vec-unaligned-erms.S") removed its last invocation, leaving both
    the VEC_SIZE > 16 definition and the "rep; ret" fallback definition in
    place.  Remove the two now-dead definitions.
    
    Signed-off-by: RyotaSaito <[email protected]>
    Reviewed-by: Adhemerval Zanella  <[email protected]>

Diff:
---
 sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S b/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
index 24261608d3..b36ef27e58 100644
--- a/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
+++ b/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
@@ -42,16 +42,11 @@
 #ifndef VZEROUPPER
 # if VEC_SIZE > 16
 #  define VZEROUPPER			vzeroupper
-#  define VZEROUPPER_SHORT_RETURN	vzeroupper; ret
 # else
 #  define VZEROUPPER
 # endif
 #endif
 
-#ifndef VZEROUPPER_SHORT_RETURN
-# define VZEROUPPER_SHORT_RETURN	rep; ret
-#endif
-
 #ifndef MOVQ
 # if VEC_SIZE > 16
 #  define MOVQ				vmovq