From 010ed5bc8a6840602776ddd1a2d4b7f817b0c56e Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 9 Apr 2026 19:32:24 +0200 Subject: x86-64/isel: always test for ZF after shift The shift instructions do not update flags if the shift amount was zero, so can't realiably do this micro optimization --- src/t_x86-64_isel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/t_x86-64_isel.c b/src/t_x86-64_isel.c index 0ad3834..f250a17 100644 --- a/src/t_x86-64_isel.c +++ b/src/t_x86-64_isel.c @@ -22,9 +22,9 @@ static const uchar opflags[NOPER] = { [Oand] = ZF|CLOBF, [Oior] = ZF|CLOBF, [Oxor] = ZF|CLOBF, - [Oshl] = ZF|CLOBF, - [Osar] = ZF|CLOBF, - [Oslr] = ZF|CLOBF, + [Oshl] = CLOBF, + [Osar] = CLOBF, + [Oslr] = CLOBF, [Oequ] = ZF|CLOBF, [Oneq] = ZF|CLOBF, [Olth] = ZF|CLOBF, -- cgit v1.2.3