diff options
| author | 2026-04-09 19:32:24 +0200 | |
|---|---|---|
| committer | 2026-04-09 19:32:24 +0200 | |
| commit | 010ed5bc8a6840602776ddd1a2d4b7f817b0c56e (patch) | |
| tree | c12c426e33a1449400daf6e92dd01ff83c9065c5 | |
| parent | c4d90877469e801c34066a7f823ffb1144dd5851 (diff) | |
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
| -rw-r--r-- | src/t_x86-64_isel.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |