aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390/strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/s390/strstr.c')
-rw-r--r--sysdeps/s390/strstr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/s390/strstr.c b/sysdeps/s390/strstr.c
index 045c380..599d20d 100644
--- a/sysdeps/s390/strstr.c
+++ b/sysdeps/s390/strstr.c
@@ -32,8 +32,14 @@ extern __typeof (__redirect_strstr) STRSTR_C attribute_hidden;
extern __typeof (__redirect_strstr) STRSTR_Z13 attribute_hidden;
# endif
+# if HAVE_STRSTR_ARCH13
+extern __typeof (__redirect_strstr) STRSTR_ARCH13 attribute_hidden;
+# endif
+
s390_libc_ifunc_expr (__redirect_strstr, strstr,
- (HAVE_STRSTR_Z13 && (hwcap & HWCAP_S390_VX))
+ (HAVE_STRSTR_ARCH13 && (hwcap & HWCAP_S390_VXRS_EXT2))
+ ? STRSTR_ARCH13
+ : (HAVE_STRSTR_Z13 && (hwcap & HWCAP_S390_VX))
? STRSTR_Z13
: STRSTR_DEFAULT
)