Skip to content

Commit ebcc809

Browse files
committed
opt: this recipe can also be applied for .core.GEF
1 parent 10f0bac commit ebcc809

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; core.LEI16 returns the bool result of Byte(a) <= Byte(b)
1+
;; core.LEI16 and .core.GEF return the bool result of Byte(a) <= Byte(b)
22
;; and is already normalized. The sequence
33
;; sub 1
44
;; sbc a, a
@@ -9,12 +9,14 @@ OLEVEL: 1
99
OFLAG: 14
1010

1111
REPLACE {{
12-
call .core.__LEI16
12+
$1
1313
sub 1
1414
sbc a, a
1515
inc a
1616
}}
1717

1818
WITH {{
19-
call .core.__LEI16
19+
$1
2020
}}
21+
22+
IF {{ $1 == "call .core.GEF" || $1 == "call .core.LEI16"}}

0 commit comments

Comments
 (0)