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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr27095.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
/* On MIPS, disable generating hints (R_MIPS_JALR) for PIC calls.  In addition
5
   to the load from the GOT this also contains the name of the funtion so for
6
   each call the function name would appear twice.  */
7
/* { dg-options "-O2 -mno-relax-pic-calls" { target mips*-*-* } } */
8
 
9
extern void *memset (void *, int, __SIZE_TYPE__);
10
extern __SIZE_TYPE__ strlen (const char *);
11
 
12
int
13
main (int argc, char **argv)
14
{
15
  char x[8] = "abc";
16
  memset (x, argc, strlen (x));
17
  return 0;
18
}
19
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen" { target { ! { powerpc*-*-darwin* hppa*-*-hpux* ia64-*-hpux* alpha*-*-* spu-*-* tic6x-*-* } } } } } */
20
/* hppa*-*-hpux* has an IMPORT statement for strlen (plus the branch). */
21
/* *-*-darwin* has something similar. */
22
/* tic6x emits a comment at the point where the delayed branch happens.  */
23
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen\(.*\n\)+.*strlen" { target hppa*-*-hpux* tic6x-*-* } } } */
24
/* { dg-final { scan-assembler-not "(?n)bl L_strlen\(.*\n\)+.*bl L_strlen" { target powerpc*-*-darwin* } } } */
25
/* ia64-*-hpux* has a global statement, a type statement, and the branch. */
26
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen\(.*\n\)+.*strlen\(.*\n\)+.*strlen" { target ia64-*-hpux* } } } */
27
/* alpha-*-* has a GOT load and the call.  */
28
/* { dg-final { scan-assembler-not "(?n)jsr .*,strlen\(.*\n\)+.*jsr .*,strlen" { target alpha*-*-* } } } */
29
/* spu-*-* has a branch hint and the call.  */
30
/* { dg-final { scan-assembler-not "(?n)brsl.*,strlen\(.*\n\)+.*brsl.*,strlen" { target spu-*-* } } } */

powered by: WebSVN 2.1.0

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