• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cd $(dirname "$0")
2
3$NDK/ndk-build -B "$@"
4
5# Find instruction in file
6# $1: instruction
7# $2: file
8find_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
20find_instruction "madd.d" mips-fp4-test1-2.s
21find_instruction "msub.d" mips-fp4-test1-2.s
22find_instruction "nmadd.d" mips-fp4-test3-6.s
23find_instruction "nmsub.d" mips-fp4-test3-6.s
24find_instruction "recip.d" mips-fp4-test3-6.s
25find_instruction "rsqrt.d" mips-fp4-test3-6.s
26
27rm -f *.s *.i
28