X-Git-Url: https://git.wh0rd.org/?p=ICEs.git;a=blobdiff_plain;f=sh-ghostscript%2Freduce-ice;fp=sh-ghostscript%2Freduce-ice;h=19faafe168f2cf81c41ea07c7551bca98debc6f1;hp=0000000000000000000000000000000000000000;hb=81f80d8c1c9898ae1c26534a3287a47220390f5c;hpb=45516216fc552c838e650d868214d867027a64f6 diff --git a/sh-ghostscript/reduce-ice b/sh-ghostscript/reduce-ice new file mode 100755 index 0000000..19faafe --- /dev/null +++ b/sh-ghostscript/reduce-ice @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Run like: +# multidelta -level=# ./reduce-ice $FILE +# levels: 0 0 1 1 2 2 10 10 +# + +FILE=gdevifno.i +CC=sh4-unknown-linux-gnu-gcc +CFLAGS="-O2 -pipe" +STRING="unable to find a register to spill in class .R0_REGS" + +$CC -pipe -c $CFLAGS $FILE 2>&1 | grep "$STRING"