rec
442 Bytes
#!/bin/csh
rm -r rtests
cp -r $1 rtests
cp rtests/{init_regs,init_vregs,test.out,test.dat,test.vreg,test.regs} ..
cd ..
rsp -tRz < go |& tee trace.all | sed -e "s/^rsp > //" | egrep "^0x0" > trace.out
sed 's/://' trace.out | awk '{print $3}' | tee pcs | nper | tail -1 | awk '{ print $10}' >> test.cnt
cp trace_out test.ctrace
echo -n "NC " >> test.ctrace
( echo obase=16 ; tail -1 test.cnt ) | bc | tr "[A-Z]" "[a-z]" >> test.ctrace