Fix two-operands subtraction

This commit is contained in:
Enrico Lumetti 2022-08-12 23:03:55 +02:00
parent a376f31d4a
commit 1a0eeea38b
1 changed files with 5 additions and 0 deletions

View File

@ -47,4 +47,9 @@
(bril:ValueInstr 'sub dest (bril:Type 'int)
(list dest
(symbol->string v1))
'() '()))]
[(Prim '- (list (Var v1) (Var v2)))
(list (bril:ValueInstr 'sub dest (bril:Type 'int)
(list (symbol->string v1)
(symbol->string v2))
'() '()))]))