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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [smlatb-1.c] - Blame information for rev 764

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target arm_dsp } */
3
/* { dg-options "-O2" } */
4
 
5
int
6
foo (int x, int in)
7
{
8
  short a = in & 0xffff;
9
  short b = (in & 0xffff0000) >> 16;
10
 
11
  return x + b * a;
12
}
13
 
14
/* { dg-final { scan-assembler "smlatb\\t" } } */

powered by: WebSVN 2.1.0

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