demonstrate killing of unnecessary stores
authorMatthias Braun <matze@braunis.de>
Sun, 21 Sep 2008 20:40:47 +0000 (20:40 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 21 Sep 2008 20:40:47 +0000 (20:40 +0000)
[r22148]

ir/be/test/deadstores.c [new file with mode: 0644]
ir/be/test/makereport.sh

diff --git a/ir/be/test/deadstores.c b/ir/be/test/deadstores.c
new file mode 100644 (file)
index 0000000..430eefc
--- /dev/null
@@ -0,0 +1,19 @@
+int a;
+static int b;
+struct { int a, b; } c;
+static struct { int a, b; } d;
+static int e;
+int *ptr = &e;
+
+int main(void) {
+       union { int a; char arr[4]; } u;
+
+       a = 1;
+       b = 0x42;
+       c.a = 2;
+       d.a = 0x42;
+       e = 3;
+       u.a = 0x42;
+
+       return 0;
+}
index 00b7f62..51f4bf0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 export LANG=
 export LC_ALL=
@@ -17,8 +17,8 @@ fi
 #EXEC_PREFIX="qemu-arm"
 #ECC="/ben/beck/ipd/bin/eccp -march=arm -bra-chordal-co-algo=heur"
 ECC_CFLAGS="${ADDCFLAGS} -v -O3 -ffp-strict"
-GCC="icc -restrict"
-GCC_CFLAGS="-O0 -Itcc -fp-model precise"
+GCC="gcc"
+GCC_CFLAGS="-O0 -Itcc"
 LINKFLAGS="-lm"
 TIMEOUT_COMPILE=300
 TIMEOUT_RUN=30