fehler82
authorMatthias Braun <matze@braunis.de>
Wed, 26 Sep 2007 19:11:05 +0000 (19:11 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 26 Sep 2007 19:11:05 +0000 (19:11 +0000)
[r15930]

ir/be/test/fehler82.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler82.c b/ir/be/test/fehler82.c
new file mode 100644 (file)
index 0000000..f64e8ee
--- /dev/null
@@ -0,0 +1,20 @@
+/*$ -fno-inline -bra-chordal-co-algo=heur4 -blistsched-select=heur */
+
+/* demonstrates copyheur4 violating register constraints of FucomFnstsw */
+#include <stdio.h>
+
+void f(float g, float g2) {
+       if(g < 1.23) {
+               if(g2 < 20)
+                       printf("good");
+       } else {
+               if(g2 < 20)
+                       printf("bad");
+       }
+}
+
+int main(void)
+{
+       f(0.5, 10);
+       return 0;
+}