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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [g2.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* Verify that hardware multiply is preferred on XScale. */
2
/* { dg-do compile } */
3
/* { dg-options "-mcpu=xscale -O2" } */
4
/* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */
5
/* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */
6
/* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */
7
/* { dg-require-effective-target arm32 } */
8
 
9
/* Brett Gaines' test case. */
10
unsigned BCPL(unsigned) __attribute__ ((naked));
11
unsigned BCPL(unsigned seed)
12
{
13
    /* Best code would be:
14
       ldr r1, =2147001325
15
       ldr r2, =715136305
16
       mla r0, r1, r0, r2
17
       mov pc, lr */
18
 
19
    return seed * 2147001325U + 715136305U;
20
}
21
 
22
/* { dg-final { scan-assembler "mla\[   ].*" } } */

powered by: WebSVN 2.1.0

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