x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 29 Jun 2022 23:07:04 +0000 (16:07 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 30 Jun 2022 02:47:52 +0000 (19:47 -0700)
This was simply missing and meant we weren't testing it properly.

sysdeps/x86_64/multiarch/ifunc-impl-list.c

index 0d28319..dcfc237 100644 (file)
@@ -1009,6 +1009,10 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
                              CPU_FEATURE_USABLE (AVX2),
                              __wmemset_chk_avx2_unaligned)
              IFUNC_IMPL_ADD (array, i, __wmemset_chk,
+                             (CPU_FEATURE_USABLE (AVX2)
+                              && CPU_FEATURE_USABLE (RTM)),
+                             __wmemset_chk_avx2_unaligned_rtm)
+             IFUNC_IMPL_ADD (array, i, __wmemset_chk,
                              (CPU_FEATURE_USABLE (AVX512VL)
                               && CPU_FEATURE_USABLE (AVX512BW)
                               && CPU_FEATURE_USABLE (BMI2)),