Use op+ syntax for all operator-based instructions

This commit is contained in:
Andrew Morris
2022-04-25 12:08:44 +10:00
parent e95e945468
commit 887b900559
4 changed files with 6 additions and 6 deletions

View File

@@ -4,9 +4,9 @@
mov %x %return
}
@f1 = function(%a, %b, %c) {
mul %b %c %_tmp0
add %a %_tmp0 %return
op* %b %c %_tmp0
op+ %a %_tmp0 %return
}
@f2 = function() {
inc %this
op++ %this
}

View File

@@ -4,5 +4,5 @@
call %foo [] %return
}
@foo = function(%x) {
add %x 5 %return
op+ %x 5 %return
}

View File

@@ -15,6 +15,6 @@
}
@Counter_inc = function() {
sub %this "value" %_tmp0
inc %_tmp0
op++ %_tmp0
submov "value" %_tmp0 %this
}

View File

@@ -17,6 +17,6 @@
}
@_anon0 = function() {
sub %this "value" %_tmp0
inc %_tmp0
op++ %_tmp0
submov "value" %_tmp0 %this
}