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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [scd42-1.c] - Blame information for rev 313

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 1 byte constant. */
2
/* { dg-do compile } */
3
/* { dg-options "-mcpu=xscale -O" } */
4
 
5
unsigned load1(void) __attribute__ ((naked));
6
unsigned load1(void)
7
{
8
    /* Best code would be:
9
       mov r0, =17
10
       mov pc, lr */
11
 
12
    return 17;
13
}
14
 
15
/* { dg-final { scan-assembler "mov\[   ].*17" } } */

powered by: WebSVN 2.1.0

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