aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir
diff options
context:
space:
mode:
Diffstat (limited to 'ir')
-rw-r--r--ir/fold.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/fold.c b/ir/fold.c
index 321797b..c87ca4d 100644
--- a/ir/fold.c
+++ b/ir/fold.c
@@ -49,6 +49,7 @@ foldint(enum op op, enum irclass k, union ref lr, union ref rr)
case Ougte: x = l.u >= r.u; break;
default: assert(0);
}
+ if (cls2siz[k] < 8) x = (int)x;
return mkintcon(k, x);
}