aboutsummaryrefslogtreecommitdiff
path: root/extract-function.sh
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2017-06-20 09:35:34 -0400
committerGravatar Andres Erbsen <andreser@mit.edu>2017-06-20 09:35:34 -0400
commit5eaab1e6463be527604933716ac2982de777b64b (patch)
treec046b0dd7a39b36e90050a20a55148b8351b9293 /extract-function.sh
parentb50a4145688508f113b1d8031bb04127c8e81fd4 (diff)
sed mulx appropriately
Diffstat (limited to 'extract-function.sh')
-rwxr-xr-xextract-function.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/extract-function.sh b/extract-function.sh
index 1d1ec2e89..dc967070b 100755
--- a/extract-function.sh
+++ b/extract-function.sh
@@ -62,6 +62,7 @@ while IFS= read -r line; do
true)
lines=$((lines+1))
echo "{ $line" | \
+ sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(mulx.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:' | \
sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(addcarryx.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:' | \
sed s':^\([^,]*\) \([^, ]*\)\(\s*\),\(.*\)\(subborrow.*\))\([; ]*\)$:\1 \2\3;\4_\5, \&\2)\6:'
;;