From: Matthias Braun Date: Wed, 26 Sep 2007 19:11:05 +0000 (+0000) Subject: fehler82 X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=810c52d4f9b006ac283aaa259dee09afc4c72e72;p=libfirm fehler82 [r15930] --- diff --git a/ir/be/test/fehler82.c b/ir/be/test/fehler82.c new file mode 100644 index 000000000..f64e8ee95 --- /dev/null +++ b/ir/be/test/fehler82.c @@ -0,0 +1,20 @@ +/*$ -fno-inline -bra-chordal-co-algo=heur4 -blistsched-select=heur */ + +/* demonstrates copyheur4 violating register constraints of FucomFnstsw */ +#include + +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; +}