From 6a3238b123ce0ba95f74468d5072493d4dc9438f Mon Sep 17 00:00:00 2001 From: neurlang <77860779+neurlang@users.noreply.github.com> Date: Fri, 18 Oct 2024 19:07:33 +0200 Subject: [PATCH] AVX512 add rodata --- hash/hashvectorized.s | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/hash/hashvectorized.s b/hash/hashvectorized.s index 069943b..6ce6c0c 100644 --- a/hash/hashvectorized.s +++ b/hash/hashvectorized.s @@ -1,14 +1,15 @@ #include "textflag.h" // Data section for the shuffle constant lookup table -DATA ·LCPI0_0+0(SB)/8, $0x0 -DATA ·LCPI0_0+8(SB)/8, $0x1 -DATA ·LCPI0_0+16(SB)/8, $0x2 -DATA ·LCPI0_0+24(SB)/8, $0x3 -DATA ·LCPI0_0+32(SB)/8, $0x4 -DATA ·LCPI0_0+40(SB)/8, $0x5 -DATA ·LCPI0_0+48(SB)/8, $0x6 -DATA ·LCPI0_0+56(SB)/8, $0x7 +GLOBL LCPI0_0(SB), RODATA, $64 +DATA LCPI0_0+0(SB)/8, $0x0 +DATA LCPI0_0+8(SB)/8, $0x1 +DATA LCPI0_0+16(SB)/8, $0x2 +DATA LCPI0_0+24(SB)/8, $0x3 +DATA LCPI0_0+32(SB)/8, $0x4 +DATA LCPI0_0+40(SB)/8, $0x5 +DATA LCPI0_0+48(SB)/8, $0x6 +DATA LCPI0_0+56(SB)/8, $0x7 // func hashVectorizedAVX512(out *uint32, n *uint32, s *uint32, max uint32, length uint32) TEXT ·hashVectorizedAVX512(SB), NOSPLIT, $0-40