From: Matthias Braun Date: Mon, 8 Oct 2007 22:44:54 +0000 (+0000) Subject: fehler91 X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=af100795f1025a97bd840dba91802a828d54ca4d;p=libfirm fehler91 [r16130] --- diff --git a/ir/be/test/fehler91.c b/ir/be/test/fehler91.c new file mode 100644 index 000000000..54e1ea4de --- /dev/null +++ b/ir/be/test/fehler91.c @@ -0,0 +1,22 @@ +/*$ -fdeconv $*/ +/* fronent sometimes produces 16bit operations which the backend can't handle + * correctly (yet) + */ +#include + +unsigned int k = 1; + +int main(void) +{ + unsigned short x = k; + + x += 0xffff; + x >>= 15; + if(x == 0) { + printf("ok\n"); + return 0; + } else { + printf("bad\n"); + return 1; + } +}