]> git.wh0rd.org - ICEs.git/blobdiff - sh-ghostscript/reduce-ice
more ices
[ICEs.git] / sh-ghostscript / reduce-ice
diff --git a/sh-ghostscript/reduce-ice b/sh-ghostscript/reduce-ice
new file mode 100755 (executable)
index 0000000..19faafe
--- /dev/null
@@ -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"