# HG changeset patch # User Pascal Bellard # Date 1543664022 -3600 # Node ID 828bdd9ad9081178cd1a24ce8ff3580e1fc9f120 # Parent 6774699d48355e1d3c7cfad72fbe24742dfff749 linld: typos (again) diff -r 6774699d4835 -r 828bdd9ad908 linld/stuff/src/pipehole.awk --- a/linld/stuff/src/pipehole.awk Sat Dec 01 12:25:32 2018 +0100 +++ b/linld/stuff/src/pipehole.awk Sat Dec 01 12:33:42 2018 +0100 @@ -151,18 +151,17 @@ print s "/256"; next } } - if (/^ add dword ptr/ || /^ sub dword ptr/ || - /^ add e[abcd]x,/ || /^ sub e[abcd]x,/) { + if (/^ add dword ptr/ || /^ sub dword ptr/) { split($0,args,",") if (args[2] == "large") { args[2] = $3 } if (isnum(args[2])) { - if (/dword ptr/ && args[2] % 16777216 == 0) { - sub(/dword/,"byte",s); + if (args[2] % 16777216 == 0) { + sub(/dword/,"byte",s) sub(/\],/,"+3],",s) || sub(/,/,"+3,",s) print s "/16777216"; next } if (args[2] % 65536 == 0) { - sub(/dword/,"word",s); sub(/ e/,"",s) + sub(/dword/,"word",s) sub(/\],/,"+2],",s) || sub(/,/,"+2,",s) print s "/65536"; next }