aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-04-26 15:28:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-04-26 15:28:14 +0000
commit5c7ec4f0d5730d28451003ab8304b388f42f2a85 (patch)
treeba24980895b374e7263f14892f3b83578d5793d0 /gcc/testsuite
parent8931743ffe7d282a25c3d05a7493d6712f327457 (diff)
downloadgcc-5c7ec4f0d5730d28451003ab8304b388f42f2a85.zip
gcc-5c7ec4f0d5730d28451003ab8304b388f42f2a85.tar.gz
gcc-5c7ec4f0d5730d28451003ab8304b388f42f2a85.tar.bz2
re PR tree-optimization/31703 (Gcc 4.3 revision 124101 failed to compile gcc 3.2)
2007-04-26 Richard Guenther <rguenther@suse.de> PR tree-optimization/31703 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use the right type for the target of the bittest. * gcc.c-torture/compile/pr31703.c: New testcase. * gcc.dg/tree-ssa/ssa-lim-1.c: Adjust pattern. * gcc.dg/tree-ssa/ssa-lim-2.c: Likewise. From-SVN: r124190
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr31703.c11
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-2.c2
4 files changed, 20 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4310a1c..b2db604 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2007-04-26 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/31703
+ * gcc.c-torture/compile/pr31703.c: New testcase.
+ * gcc.dg/tree-ssa/ssa-lim-1.c: Adjust pattern.
+ * gcc.dg/tree-ssa/ssa-lim-2.c: Likewise.
+
2007-04-26 Wolfgang Gellerich <gellerich@de.ibm.com>
* gfortran.dg/open_errors.f90: Added if statements checking
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr31703.c b/gcc/testsuite/gcc.c-torture/compile/pr31703.c
new file mode 100644
index 0000000..e463205
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr31703.c
@@ -0,0 +1,11 @@
+typedef unsigned long long HARD_REG_ELT_TYPE;
+static HARD_REG_ELT_TYPE reload_reg_used_in_output_addr[30];
+int reload_reg_reaches_end_p (unsigned int regno, int opnum)
+{
+ int i;
+ for (i = opnum + 1; i < opnum; i++)
+ if (reload_reg_used_in_output_addr[i]
+ & ((HARD_REG_ELT_TYPE)1 << regno))
+ return 0;
+}
+
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-1.c
index f76c5d4..db36ff0 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-1.c
@@ -18,5 +18,5 @@ quantum_toffoli (int control1, int control2, int target,
}
}
-/* { dg-final { scan-tree-dump-times "shifttmp" 6 "lim" } } */
+/* { dg-final { scan-tree-dump-times "1 <<" 3 "lim" } } */
/* { dg-final { cleanup-tree-dump "lim" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-2.c
index 286e0e8..7b18b1c 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-2.c
@@ -18,5 +18,5 @@ int size)
}
}
-/* { dg-final { scan-tree-dump-times "shifttmp" 6 "lim" } } */
+/* { dg-final { scan-tree-dump-times "1 <<" 3 "lim" } } */
/* { dg-final { cleanup-tree-dump "lim" } } */