summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20040309-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/20040309-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20040309-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20040309-1.c b/gcc/testsuite/gcc.dg/20040309-1.c
new file mode 100644
index 000000000..736150731
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20040309-1.c
@@ -0,0 +1,17 @@
+/* Test integer mod on ia64. There was a bug in the inline integer
+ division code. */
+
+/* { dg-do run } */
+/* { dg-options "-minline-int-divide-max-throughput" { target ia64-*-* } } */
+
+extern void abort (void);
+
+volatile int i = 10;
+volatile int j = 10;
+
+int main()
+{
+ int k = i % j;
+ if (k != 0) abort();
+ return 0;
+}