summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20050325-1.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-25 09:23:47 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-25 09:23:47 +0000
commit412c63b0282bcdbae22ea0f56af660212f14b817 (patch)
tree5709052f755bd164f42d4e1e895f136f0fb36fb2 /gcc/testsuite/gcc.dg/20050325-1.c
parent697e01c840518de6897f50b7392f776c0b9930bb (diff)
downloadgcc-412c63b0282bcdbae22ea0f56af660212f14b817.tar.gz
PR rtl-optimization/20249
* cse.c (insert_regs): Do not record equivalence of registers in different modes. * gcc.dg/20050325-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97039 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20050325-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20050325-1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20050325-1.c b/gcc/testsuite/gcc.dg/20050325-1.c
new file mode 100644
index 00000000000..524f9d195c1
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20050325-1.c
@@ -0,0 +1,19 @@
+/* PR 20249 */
+
+/* { dg-do compile } */
+/* dg-options "-O2 -fprofile-arcs" } */
+
+extern int *g (int x, void* y);
+extern void fg (long long x, int y);
+
+static void
+ff (int y, long long z)
+{
+ fg (z, 1);
+}
+
+void
+f ()
+{
+ g (42, ff);
+}