aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-09 19:32:24 +0200
committerlemon <lsof@mailbox.org>2026-04-09 19:32:24 +0200
commit010ed5bc8a6840602776ddd1a2d4b7f817b0c56e (patch)
treec12c426e33a1449400daf6e92dd01ff83c9065c5
parentc4d90877469e801c34066a7f823ffb1144dd5851 (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.c6
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,