more ices
[ICEs.git] / bfin-3510 / reduce-ice
1 #!/bin/bash
2 #
3 # Run like:
4 # multidelta -level=# ./reduce-ice $FILE
5 # levels: 0 0 1 1 2 2 10 10
6 #
7
8 FILE=gsm0610_decode.i
9 CC=/usr/local/src/blackfin/toolchains/20070829/out-linux-uclibc/bin/bfin-linux-uclibc-gcc
10 CFLAGS="-O2"
11 STRING="error: insn does not satisfy its constraints:"
12
13 $CC -pipe -c $CFLAGS $FILE 2>&1 | grep "$STRING"