Change hw6 to an unsolved version.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 23:10:01 -08:00
parent 0c04936ccf
commit ee01a8f5b2
186 changed files with 9605 additions and 4019 deletions

View file

@ -4,6 +4,9 @@ open Llutil
open X86
module Platform = Util.Platform
(* Backend "Layout" compilation strategy ------------------------------------ *)
(* allocated llvmlite function bodies --------------------------------------- *)
module Alloc = struct
@ -250,7 +253,7 @@ let emit_mov (src:X86.operand) (dst:X86.operand) : x86stream =
ol ol' 2 2 3 2
x <- y x <- y w <- x MOV x, w MOV x, w MOV x, w
y <- y ==> ==> ------ ==> -------- ==> PUSH y ==> PUSH y
z <- z ==> ==> ------ ==> -------- ==> PUSH y ==> PUSH y
w <- x w <- x x <- y x <- y y <- z MOV z, y
y <- z y <- z y <- z y <- z POP x POP x