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.dg/] [pr39443.c] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/39443 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
/* { dg-final { scan-assembler-not "memcmp" } } */
5
 
6
typedef __SIZE_TYPE__ size_t;
7
 
8
extern int memcmp (const void *s1, const void *s2, size_t n)
9
  __attribute__ ((__nothrow__, __pure__));
10
extern __typeof (memcmp) memcmp __asm__ ("memory_compare");
11
 
12
int
13
test (char *s, char *t, int cnt)
14
{
15
  if (__builtin_expect (cnt, 0))
16
    return memcmp (s, t, cnt);
17
  return 0;
18
}

powered by: WebSVN 2.1.0

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