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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [arm-scd42-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Verify that mov is preferred on XScale for loading a 1 byte constant. */
2
/* { dg-do compile { target xscale-*-* } } */
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.