diff options
author | Andres Erbsen <andreser@mit.edu> | 2017-07-03 16:31:39 -0400 |
---|---|---|
committer | Andres Erbsen <andreser@mit.edu> | 2017-07-03 22:44:19 -0400 |
commit | 189aa1564635ba575439b731d8b638a445b9c7b1 (patch) | |
tree | 9aebcaf08d0128db69068f28fa15abfccf517093 /extract-function.sh | |
parent | 8b9c825a7c3d71ee62419d973ea138adec49da4e (diff) |
fix mulx argument order using sed, test feadd, femul (fails due to #234)
Diffstat (limited to 'extract-function.sh')
-rwxr-xr-x | extract-function.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extract-function.sh b/extract-function.sh index c4345674f..c00ae274b 100755 --- a/extract-function.sh +++ b/extract-function.sh @@ -62,10 +62,11 @@ while IFS= read -r line; do case "$show" in true) lines=$((lines+1)) - echo "{ $line" | \ - sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(mulx.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:' | \ + line="$(echo "$line" | \ + sed s':^\([^,]*\),\(\s*\)\([^ ]*\) \([^ ]*\)\(.*\)\(mulx.*\))\([; ]*\)$: \3 \4;\2\1\5_\6, \&\4)\7:' | \ sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(addcarryx.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:' | \ - sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(subborrow.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:' + sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(subborrow.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:')" + echo "{ $line" ;; esac ;; |