wok diff linld/stuff/src/pipehole.awk @ rev 20549
Remove linux-mmc (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 02 11:03:17 2018 +0100 (2018-12-02) |
parents | 828bdd9ad908 |
children | d3d2a15d3d0d |
line diff
1.1 --- a/linld/stuff/src/pipehole.awk Sat Dec 01 12:33:42 2018 +0100 1.2 +++ b/linld/stuff/src/pipehole.awk Sun Dec 02 11:03:17 2018 +0100 1.3 @@ -18,8 +18,7 @@ 1.4 split($0,regs,",") 1.5 if (isnum(regs[2]) && regs[2] != 0 && 1.6 (regs[2] % 256) == 0) { 1.7 - hold=5 1.8 - next 1.9 + hold=5; next 1.10 } 1.11 } 1.12 if (/^ mov cl,4$/) { hold=8; next } 1.13 @@ -54,8 +53,7 @@ 1.14 if (/^ add [abcds][ix],/) { 1.15 split($2,regs2,",") 1.16 if (regs[1] == regs2[1] && (regs2[2] == "offset" || isnum(regs2[2]))) { 1.17 - t=$0; sub(/mov/,$1,s) 1.18 - if ($1 == "add") sub(/add/,"mov",t); else sub(/sub/,"mov",t) 1.19 + t=$0; sub(/mov/,$1,s); sub(/add/,"mov",t) 1.20 print t; print s; next 1.21 } 1.22 }