fehler96: tarval module calculates Shrs wrong for mode_Iu.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Oct 2007 17:54:55 +0000 (17:54 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Oct 2007 17:54:55 +0000 (17:54 +0000)
[r16207]

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

diff --git a/ir/be/test/fehler96.c b/ir/be/test/fehler96.c
new file mode 100644 (file)
index 0000000..4e08f83
--- /dev/null
@@ -0,0 +1,8 @@
+int shrs1(unsigned x) {
+       return -(x >> 31);
+}
+
+int main(void)
+{
+       printf("%d (should be -1)\n", shrs1(-3));
+}