]> git.wh0rd.org - ICEs.git/blobdiff - 287391/reduce-ice
more ices
[ICEs.git] / 287391 / reduce-ice
diff --git a/287391/reduce-ice b/287391/reduce-ice
new file mode 100755 (executable)
index 0000000..38f03fe
--- /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=svolume_mmx.i
+CC=gcc
+CFLAGS="-O1 -fweb"
+
+num=$($CC -pipe -c $CFLAGS $FILE 2>&1 | grep "error: invalid 'asm': invalid expression as operand" | wc -l)
+[ $num -eq 3 ]