Skip to content

Commit 8a2b3ea

Browse files
committed
Replace svwhilelt with svptrue_pat, better code and avoid MSVC internal error
1 parent 57e27ef commit 8a2b3ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/eval_sse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void eval_update_sse(int x, unsigned long long f, Eval *eval_out, const Eval *ev
9393
#else
9494
#ifdef __ARM_FEATURE_SVE
9595
if (svcnth() >= 16) { // SVE256, use Neon if svcnth() < 16
96-
svbool_t pg = svwhilelt_b16(0, 16);
96+
svbool_t pg = svptrue_pat_b16(SV_VL16);
9797
svuint16_t f0 = svld1_u16(pg, eval_in->feature.us);
9898
svuint16_t f1 = svld1_u16(pg, eval_in->feature.us + 16);
9999
svuint16_t f2 = svld1_u16(pg, eval_in->feature.us + 32);
@@ -307,7 +307,7 @@ void eval_set(Eval *eval, const Board *board)
307307
#else
308308
#ifdef __ARM_FEATURE_SVE
309309
if (svcnth() >= 16) { // SVE256, use Neon for svcnth() < 16
310-
svbool_t pg = svwhilelt_b16(0, 16);
310+
svbool_t pg = svptrue_pat_b16(SV_VL16);
311311
svuint16_t f0 = svld1_u16(pg, EVAL_FEATURE_all_opponent.us);
312312
svuint16_t f1 = svld1_u16(pg, EVAL_FEATURE_all_opponent.us + 16);
313313
svuint16_t f2 = svld1_u16(pg, EVAL_FEATURE_all_opponent.us + 32);

0 commit comments

Comments
 (0)