From: Michael Beck Date: Thu, 4 Sep 2008 12:11:27 +0000 (+0000) Subject: different cparser / eccp code X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=9a6913abdba3fe166d0e6621cdf44a38909653cc;p=libfirm different cparser / eccp code [r21698] --- diff --git a/ir/be/test/fehler149.c b/ir/be/test/fehler149.c new file mode 100644 index 000000000..3b7f9950d --- /dev/null +++ b/ir/be/test/fehler149.c @@ -0,0 +1,14 @@ +unsigned short tdenm, tquot; + +void test(unsigned short num[]) { + + unsigned int tnum = (((unsigned int) num[0]) << 16) + num[1]; + + /* Do not execute the divide instruction if it will overflow. */ + if ((tdenm * 0xffffL) < tnum) + tquot = 0xffff; +} + +int main(int argc, char *argv[]) { + return 0; +}