Skip to content

Commit a4ab332

Browse files
committed
feat: make NOT operant to be bool normalized
1 parent d58b771 commit a4ab332

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/arch/z80/peephole/opts/020_o1_bool_norm_empty.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ IF {{
2626
"call .core.__GEF", "call .core.__LEI16", "call .core.__LEI8", "call .core.__LTI8",
2727
"call .core.__ANDF", "call .core.__EQF", "call .core.__GTF", "call .core.__LTI16",
2828
"call .core.__LEF", "call .core.__LEI32", "call .core.__LTF", "call .core.__LTI32",
29-
"call .core.__NEF")
29+
"call .core.__NEF", "call .core.__NOTF")
3030
}}

tests/functional/arch/zx48k/not16.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ _b:
3333
or l
3434
sub 1
3535
sbc a, a
36+
neg
3637
ld (_b), a
3738
ld hl, 0
3839
ld b, h

tests/functional/arch/zx48k/not8.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ _b:
3131
ld a, (_a)
3232
sub 1
3333
sbc a, a
34+
neg
3435
ld (_b), a
3536
ld hl, 0
3637
ld b, h

0 commit comments

Comments
 (0)