]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/59175 (gcc.target/i386/memcpy-2.c fails with -m32)
authorJan Hubicka <jh@suse.cz>
Tue, 19 Nov 2013 01:30:51 +0000 (02:30 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Nov 2013 01:30:51 +0000 (01:30 +0000)
PR middle-end/59175
* gcc.target/i386/memcpy-2.c: Fix template;
add +1 so the testcase passes at 32bit.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r204996

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/memcpy-2.c

index 9dd4e626d1da9875f4dd7b799a4531a91bd8784c..975dc098523568b32f31c736accc697967f96ccf 100644 (file)
@@ -1,3 +1,10 @@
+2013-11-18  Jan Hubicka  <jh@suse.cz>
+           Uros Bizjak  <ubizjak@gmail.com>
+
+       PR middle-end/59175
+       * gcc.target/i386/memcpy-2.c: Fix template;
+       add +1 so the testcase passes at 32bit.
+
 2013-11-18  Dominique d'Humieres  <dominiq@lps.ens.fr>
 
        * c-c++-common/cilk-plus/PS/reduction-3.c: Use stdlib.h.
index fe53f2653a0b148236f5d9c90d70f264c7f70487..56cdd56fae4d5bb80dcf43505fdda10224f005dc 100644 (file)
@@ -1,11 +1,11 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* Memcpy should be inlined because block size is known.  */
-/* { dg-final { scan-assembler-not "memcpy" } } */
 void *a;
 void *b;
 t(unsigned int c)
 {
   if (c<10)
-    memcpy (a,b,c);
+    __builtin_memcpy (a,b,c+1);
 }
+/* Memcpy should be inlined because block size is known.  */
+/* { dg-final { scan-assembler-not "(jmp|call)\[\\t \]*memcpy" } } */