OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr11001-memset-3.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* Ensure that we don't use 'rep stoX' in the presence of register globals.  */
2
/* { dg-do compile } */
3
/* { dg-options "-Os -w" } */
4
 
5
extern void *memset (void *, int, __SIZE_TYPE__);
6
 
7
register int regvar asm("%edi");
8
 
9
int foo[10];
10
int bar[10];
11
 
12
char baz[15];
13
char quux[15];
14
 
15
void
16
do_copy ()
17
{
18
  memset (foo, 0, sizeof foo);
19
  memset (baz, 0, sizeof baz);
20
}
21
 
22
/* { dg-final { scan-assembler-not "rep stosl" } } */
23
/* { dg-final { scan-assembler-not "rep stosb" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.