wok rev 20546

linld: typos (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 01 12:33:42 2018 +0100 (11 days ago)
parents 6774699d4835
children cbf4455443d3
files linld/stuff/src/pipehole.awk
line diff
     1.1 --- a/linld/stuff/src/pipehole.awk	Sat Dec 01 12:25:32 2018 +0100
     1.2 +++ b/linld/stuff/src/pipehole.awk	Sat Dec 01 12:33:42 2018 +0100
     1.3 @@ -151,18 +151,17 @@
     1.4  			print s "/256"; next
     1.5  		}
     1.6  	}
     1.7 -	if (/^	add	dword ptr/ || /^	sub	dword ptr/ ||
     1.8 -	    /^	add	e[abcd]x,/ || /^	sub	e[abcd]x,/) {
     1.9 +	if (/^	add	dword ptr/ || /^	sub	dword ptr/) {
    1.10  		split($0,args,",")
    1.11  		if (args[2] == "large") { args[2] = $3 }
    1.12  		if (isnum(args[2])) {
    1.13 -			if (/dword ptr/ && args[2] % 16777216 == 0) {
    1.14 -				sub(/dword/,"byte",s);
    1.15 +			if (args[2] % 16777216 == 0) {
    1.16 +				sub(/dword/,"byte",s)
    1.17  				sub(/\],/,"+3],",s) || sub(/,/,"+3,",s)
    1.18  				print s "/16777216"; next
    1.19  			}
    1.20  			if (args[2] % 65536 == 0) {
    1.21 -				sub(/dword/,"word",s); sub(/	e/,"",s)
    1.22 +				sub(/dword/,"word",s)
    1.23  				sub(/\],/,"+2],",s) || sub(/,/,"+2,",s)
    1.24  				print s "/65536"; next
    1.25  			}