]> gcc.gnu.org Git - gcc.git/commitdiff
Testcase for ia64-linux extract_muldiv bug.
authorJim Wilson <wilson@cygnus.com>
Wed, 3 May 2000 20:03:21 +0000 (20:03 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 3 May 2000 20:03:21 +0000 (13:03 -0700)
* execute/20000503-1.c: New test for extract_muldiv bug.

From-SVN: r33642

gcc/testsuite/gcc.c-torture/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20000503-1.c [new file with mode: 0644]

index 24cd000ad162d5028306b3fea74b441f5ca9003a..20a9825adfcf1cd3cdc9ab82d7cae49f1ac49731 100644 (file)
@@ -1,3 +1,7 @@
+Wed May  3 13:02:10 2000  Jim Wilson  <wilson@cygnus.com>
+
+       * execute/20000503-1.c: New test for extract_muldiv bug.
+
 Thu Apr 27 15:58:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
 
        * compile/20000427-1.c: New test for loop hoisting code
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000503-1.c b/gcc/testsuite/gcc.c-torture/execute/20000503-1.c
new file mode 100644 (file)
index 0000000..d788286
--- /dev/null
@@ -0,0 +1,13 @@
+unsigned long
+sub (int a)
+{
+  return ((0 > a - 2) ? 0 : a - 2) * sizeof (long);
+}
+
+main ()
+{
+  if (sub1 (0) != 0)
+    abort ();
+
+  exit (0);
+}
This page took 0.076749 seconds and 5 git commands to generate.