From 189aa1564635ba575439b731d8b638a445b9c7b1 Mon Sep 17 00:00:00 2001 From: Andres Erbsen Date: Mon, 3 Jul 2017 16:31:39 -0400 Subject: fix mulx argument order using sed, test feadd, femul (fails due to #234) --- extract-function.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extract-function.sh') 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 ;; -- cgit v1.2.3