sed 匹配 /* xq0 <- tmp4 */ 等
sed -i 's#\/\* .* tmp.* \*\/# #g' $i
sed -i 's#\/\* tmp.* \*\/# #g' $i
-
#target="1409_s16.c"
-
target="1409_s16.c 1417_s32.c 1428_s32.c 1440_su.c 1449_s16.c 1512_i8.c 1516_s16.c 1409_s8.c 1417_u32.c 1428_u32.c 1441_s16.c 1449_s8.c 1513_s16.c 1517_s16.c 1409_u16.c 1420_s8.c 1429_s9.c 1441_s8.c 1450_su16.c 1513_s32.c 1518_s16.c 1409_u8.c 1421_su8.c 1430_su9.c 1442_su8.c 1450_su8.c 1513_s8.c 1519_s16.c 1410_su16.c 1422_s16.c 1431_u16.c 1443_s16.c 1451_s32.c 1513_u16.c 1520_s16.c 1410_su8.c 1422_s8.c 1431_u8.c 1443_s8.c 1451_u32.c 1513_u32.c 1521_s16.c 1411_s32.c 1423_su8.c 1432_s16.c 1443_u16.c 1454_s8.c 1513_u8.c 1522_s16.c 1411_u32.c 1424_s16.c 1432_s8.c 1443_u8.c 1455_su8.c 1514_i16.c 1523_s16.c 1412_s9.c 1424_s8.c 1433_su16.c 1444_su16.c 1456_s16.c 1514_i32.c 1524_s16.c 1413_su9.c 1425_su8.c 1433_su8.c 1444_su8.c 1456_s8.c 1514_i8.c 1414_u16.c 1426_s16.c 1434_s32.c 1445_s32.c 1457_su.c 1515_s16.c 1414_u8.c 1426_s8.c 1434_u32.c 1445_u32.c 1458_s16.c 1515_s32.c 1415_s16.c 1426_u16.c 1437_s8.c 1446_s9.c 1458_s8.c 1515_s8.c 1415_s8.c 1426_u8.c 1438_su8.c 1447_su9.c 1459_su8.c 1515_u16.c 1416_su16.c 1427_su16.c 1439_s16.c 1448_u16.c 1512_i16.c 1515_u32.c 1416_su8.c 1427_su8.c 1439_s8.c 1448_u8.c 1512_i32.c 1515_u8.c"
-
-
-
for i in $target
-
do
-
#ls $i > aa
-
#num=`cat aa| awk -F '_' '{print $1}'`
-
#echo $num
-
-
#grep -rn "void optimize_asm_" $i > bb
-
#str=`cat bb|awk -F '_' '{print $4}'`
-
#echo $str > cc
-
#str1=`cat cc|awk -F '(' '{print $1}'`
-
#echo $str1
-
#sed -i "s/$str1(/${str1}_$num(/g" $i
-
#sed -i 's/static void expect_/void expect_/g' $i
-
-
#line=`grep -rn "main" $i`
-
#echo $line > dd
-
#line1=`cat dd|awk -F ':' '{print $1}'`
-
#echo $line1
-
#re=$(($line1+5))
-
#echo $re
-
#sed -i "${re}a#endif" $i
-
#sed -i "${line1}i#ifndef COMBINE" $i
-
#sed -i 's/vr0:vr1/vxd0/g' $i
-
#sed -i 's/vr2:vr3/vxd1/g' $i
-
sed -i 's/vr4:vr5/vxd2/g' $i
-
sed -i 's/vr6:vr7/vxd3/g' $i
-
sed -i 's/vr8:vr9/vxd4/g' $i
-
sed -i 's/vr10:vr11/vxd5/g' $i
-
#sed -i 's/, xq/, vxq/g' $i
-
#sed -i 's/,xq/,vxq/g' $i
-
#sed -i 's/:xq/:vxq/g' $i
-
done
阅读(1024) | 评论(0) | 转发(0) |