OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [scd42-2.c] - Blame information for rev 315

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

Line No. Rev Author Line
1 313 jeremybenn
/* Verify that mov is preferred on XScale for loading a 2 byte constant. */
2
/* { dg-do compile } */
3
/* { dg-options "-mcpu=xscale -O" } */
4
/* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */
5
/* { dg-require-effective-target arm32 } */
6
 
7
unsigned load2(void) __attribute__ ((naked));
8
unsigned load2(void)
9
{
10
    /* Best code would be:
11
       mov r0, =272
12
       add r0, r0, =1
13
       mov pc, lr */
14
 
15
    return 273;
16
}
17
 
18
/* { dg-final { scan-assembler "mov\[   ].*272" } } */

powered by: WebSVN 2.1.0

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