fehler120: Backend discards float->int Conv for shift amount.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 29 Jul 2008 21:36:29 +0000 (21:36 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 29 Jul 2008 21:36:29 +0000 (21:36 +0000)
[r20772]

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

diff --git a/ir/be/test/fehler120.c b/ir/be/test/fehler120.c
new file mode 100644 (file)
index 0000000..8b8fd1d
--- /dev/null
@@ -0,0 +1,11 @@
+/*$ -fno-inline $*/
+
+int f(float x)
+{
+       return 1 << (int)x;
+}
+
+int main(void)
+{
+       return f(3.0) != 8;
+}