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-2.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 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-require-effective-target arm32 } */
5
 
6
unsigned load2(void) __attribute__ ((naked));
7
unsigned load2(void)
8
{
9
    /* Best code would be:
10
       mov r0, =272
11
       add r0, r0, =1
12
       mov pc, lr */
13
 
14
    return 273;
15
}
16
 
17
/* { 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.