different cparser / eccp code
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 4 Sep 2008 12:11:27 +0000 (12:11 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 4 Sep 2008 12:11:27 +0000 (12:11 +0000)
[r21698]

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

diff --git a/ir/be/test/fehler149.c b/ir/be/test/fehler149.c
new file mode 100644 (file)
index 0000000..3b7f995
--- /dev/null
@@ -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;
+}