aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-09 17:08:43 +0100
committerlemon <lsof@mailbox.org>2025-11-09 17:08:43 +0100
commita592e99e7abab7978008ae13cc501d7f54d75de7 (patch)
tree36626f4acea279724c869a824bb5ed7ab6bb030a
parented7cd9a5f6960df788eab5a18c5b1d8b4f59ba14 (diff)
fixup! amd64: get rid of xinc/xdec. handle those at emit stage
-rw-r--r--amd64/isel.c2
-rw-r--r--ir/ir.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/amd64/isel.c b/amd64/isel.c
index 6856b72..8108ec4 100644
--- a/amd64/isel.c
+++ b/amd64/isel.c
@@ -10,7 +10,7 @@ enum flag {
};
/* flags modified by each integer op */
-static const uchar opflags[] = {
+static const uchar opflags[NOPER] = {
[Oneg] = ZF|CLOBF,
[Oadd] = ZF|CLOBF,
[Osub] = ZF|CLOBF,
diff --git a/ir/ir.h b/ir/ir.h
index 149a74b..4c369a1 100644
--- a/ir/ir.h
+++ b/ir/ir.h
@@ -84,6 +84,7 @@ enum op {
#define _(o,...) O##o,
#include "op.def"
#undef _
+ NOPER,
};
#define oiscmp(o) in_range(o, Oequ, Ougte)