diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/stanza/primop.stanza | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/stanza/primop.stanza b/src/main/stanza/primop.stanza index c1a1bfd4..b285e0ee 100644 --- a/src/main/stanza/primop.stanza +++ b/src/main/stanza/primop.stanza @@ -73,7 +73,7 @@ public defn primop-gen-constraints (e:DoPrim,v:Vector<WGeq>) -> Type : val w* = switch {op(e) == _} : ADD-OP : PlusWidth(get-max(0,1),LongWidth(1)) SUB-OP : PlusWidth(get-max(0,1),LongWidth(1)) - MUL-OP : PlusWidth(get-max(0,1),get-max(0,1)) + MUL-OP : PlusWidth(width!(args(e)[0]),width!(args(e)[1])) DIV-OP : match(type(args(e)[0]),type(args(e)[1])) : (t0:UIntType,t1:SIntType) : PlusWidth(width!(args(e)[0]),LongWidth(1)) |
