We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f0bac commit ebcc809Copy full SHA for ebcc809
1 file changed
src/arch/z80/peephole/opts/000_o1_lei16_bool.opt
@@ -1,4 +1,4 @@
1
-;; core.LEI16 returns the bool result of Byte(a) <= Byte(b)
+;; core.LEI16 and .core.GEF return the bool result of Byte(a) <= Byte(b)
2
;; and is already normalized. The sequence
3
;; sub 1
4
;; sbc a, a
@@ -9,12 +9,14 @@ OLEVEL: 1
9
OFLAG: 14
10
11
REPLACE {{
12
- call .core.__LEI16
+ $1
13
sub 1
14
sbc a, a
15
inc a
16
}}
17
18
WITH {{
19
20
21
+
22
+IF {{ $1 == "call .core.GEF" || $1 == "call .core.LEI16"}}
0 commit comments