From: Christoph Mallon Date: Mon, 15 Oct 2007 17:54:55 +0000 (+0000) Subject: fehler96: tarval module calculates Shrs wrong for mode_Iu. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=97e749f5712cee5c837c266052793be1d20ee7a5;p=libfirm fehler96: tarval module calculates Shrs wrong for mode_Iu. [r16207] --- diff --git a/ir/be/test/fehler96.c b/ir/be/test/fehler96.c new file mode 100644 index 000000000..4e08f83d5 --- /dev/null +++ b/ir/be/test/fehler96.c @@ -0,0 +1,8 @@ +int shrs1(unsigned x) { + return -(x >> 31); +} + +int main(void) +{ + printf("%d (should be -1)\n", shrs1(-3)); +}