THE ADD FUNCTION COMPILES!!!!!

This commit is contained in:
SpookyDervish
2025-09-10 20:45:22 +10:00
parent a23bcf7823
commit 2ce71e7abb
5 changed files with 90 additions and 44 deletions

View File

@@ -132,5 +132,13 @@ class X86_64Optimizer(Optimizer):
Instruction("mov", ["rax", "y"]),
Instruction("cmp", ["rax", "x"])
]
),
PeepholeRule(
match=[
Instruction("mov", ["x", "y"]),
Instruction("mov", ["y", "x"])
],
replace=[]
)
]