1 cd $(dirname "$0") 2 3 $NDK/ndk-build -B "$@" 4 5 # Find instruction in file 6 # $1: instruction 7 # $2: file 8 find_instruction () 9 { 10 local INST=$1 11 local FILE=$2 12 13 grep -q -w -F -e $INST $FILE 14 if [ $? != 0 ]; then 15 echo "$INST expected in file $FILE" 16 exit 1 17 fi 18 } 19 20 find_instruction "madd.d" mips-fp4-test1-2.s 21 find_instruction "msub.d" mips-fp4-test1-2.s 22 find_instruction "nmadd.d" mips-fp4-test3-6.s 23 find_instruction "nmsub.d" mips-fp4-test3-6.s 24 find_instruction "recip.d" mips-fp4-test3-6.s 25 find_instruction "rsqrt.d" mips-fp4-test3-6.s 26 27 rm -f *.s *.i 28