From e0e972d498bc3437c67af62237af4c5f0f606007 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Fri, 6 Jun 2025 11:31:09 +0000 Subject: [PATCH] Fix x86 case, use alignr instead --- src/nfa/x86/shufti.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nfa/x86/shufti.hpp b/src/nfa/x86/shufti.hpp index 4034acca..f75fb100 100644 --- a/src/nfa/x86/shufti.hpp +++ b/src/nfa/x86/shufti.hpp @@ -72,8 +72,8 @@ SuperVector blockDoubleMask(SuperVector mask1_lo, SuperVector mask1_hi, // offset c1 so it aligns with c2. The hole created by the offset is filled // with the last elements of the previous c1 so no info is lost. // If bits with value 0 lines up, it indicate a match. - c2.template vshr_imm<1>().print8("c2.vshr_128(1)"); - SuperVector c = new_c1 | (c2.template vshr_imm<1>()); + SuperVector offset_c1 = inout_c1->alignr(new_c1, S-1); + SuperVector c = offset_c1 | c2; c.print8("c"); *inout_c1 = new_c1;