re PR rtl-optimization/55315 (comparing address to constant is folded in cse)
authorTom de Vries <tom@codesourcery.com>
Mon, 19 Nov 2012 09:35:54 +0000 (09:35 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 19 Nov 2012 09:35:54 +0000 (09:35 +0000)
2012-11-19  Tom de Vries  <tom@codesourcery.com>

PR rtl-optimization/55315

* gcc.target/mips/pr55315.c: New test.

From-SVN: r193617

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/pr55315.c [new file with mode: 0644]

index 245b6ef2a9e199ee3852ae8c67c59661d0309320..dd5e69c0b2e5406d82afe3a4be551ffc65d6fa6a 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-19  Tom de Vries  <tom@codesourcery.com>
+
+       PR rtl-optimization/55315
+
+       * gcc.target/mips/pr55315.c: New test.
+
 2012-11-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/55236
diff --git a/gcc/testsuite/gcc.target/mips/pr55315.c b/gcc/testsuite/gcc.target/mips/pr55315.c
new file mode 100644 (file)
index 0000000..c3f8332
--- /dev/null
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+
+int data[4096];
+
+int
+f (void)
+{
+  return (((unsigned int) &data[0]) == 0xdeadbea0U);
+}
+
+/* { dg-final { scan-assembler-not "\tmove\t\\\$2,\\\$0" } } */