demonstartes a bug in the tarval module
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 2 Sep 2008 12:35:32 +0000 (12:35 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 2 Sep 2008 12:35:32 +0000 (12:35 +0000)
[r21645]

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

diff --git a/ir/be/test/fehler145.c b/ir/be/test/fehler145.c
new file mode 100644 (file)
index 0000000..5e8f8cc
--- /dev/null
@@ -0,0 +1,15 @@
+#define INT_TO_FLOAT(I)                ((2.0F * (I) + 1.0F) * (1.0F/4294967294.0F))
+
+float A, B, C;
+
+void f(float r, float g, float b) {
+       A = r; B = g; C = b;
+}
+
+void bla(int r, int g, int b) {
+       f(INT_TO_FLOAT(r), INT_TO_FLOAT(g), INT_TO_FLOAT(b));
+}
+
+int main(int argc, char *argv[]) {
+       return 0;
+}