diff options
| author | 2025-11-21 16:52:46 +0100 | |
|---|---|---|
| committer | 2025-11-21 16:52:46 +0100 | |
| commit | 821adf9e5c962c97e46f3a215c876bc10916e302 (patch) | |
| tree | afbde7e0cb5f073b6bdbec1d25e086f5e094b31d /ir/builder.c | |
| parent | ec4cfe9db9afc1d1c633a922174f5bb0685b0c32 (diff) | |
remove umul
Diffstat (limited to 'ir/builder.c')
| -rw-r--r-- | ir/builder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/builder.c b/ir/builder.c index 9c6a0ef..b177a39 100644 --- a/ir/builder.c +++ b/ir/builder.c @@ -18,7 +18,7 @@ irbinop(struct function *fn, enum op op, enum irclass k, union ref l, union ref case Osub: if (r.bits == ZEROREF.bits) return l; /* x +/- 0 ==> x */ break; - case Omul: case Oumul: + case Omul: if (isnumcon(l)) rswap(l, r); /* put const in rhs */ if (r.bits == ZEROREF.bits) /* x * 0 ==> 0 */ return ZEROREF; |