projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0e09fe
)
fehler82
author
Matthias Braun
<matze@braunis.de>
Wed, 26 Sep 2007 19:11:05 +0000
(19:11 +0000)
committer
Matthias 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]
patch
|
blob
diff --git a/ir/be/test/fehler82.c
b/ir/be/test/fehler82.c
new file mode 100644
(file)
index 0000000..
f64e8ee
--- /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 <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;
+}