cleanup overflow computation
This commit is contained in:
parent
0aa0002337
commit
20df24da75
1 changed files with 3 additions and 2 deletions
5
lo2.ml
5
lo2.ml
|
@ -467,8 +467,9 @@ let codegen (p: mprog): string =
|
|||
outb rex; outb op; outb (modrm r m) in
|
||||
|
||||
let slot s =
|
||||
assert (s*8<256);
|
||||
((-1-s) * 8) land 0xff in
|
||||
let c = ((-1-s) * 8) land 0xff in
|
||||
assert (c < 256);
|
||||
c in
|
||||
|
||||
let move l l1 = match l, l1 with
|
||||
| (LReg _ as r), LCon k ->
|
||||
|
|
Loading…
Add table
Reference in a new issue