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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [mult-17.c] - Blame information for rev 704

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-O -mgp32 (-mips16)" } */
2
/* { dg-final { scan-assembler "\tmultu\t" } } */
3
/* { dg-final { scan-assembler-not "\tmflo\t" } } */
4
/* { dg-final { scan-assembler "\tmfhi\t" } } */
5
 
6
typedef unsigned int DI __attribute__((mode(DI)));
7
typedef unsigned int SI __attribute__((mode(SI)));
8
 
9
MIPS16 SI
10
f (SI x, SI y)
11
{
12
  return ((DI) x * y) >> 32;
13
}

powered by: WebSVN 2.1.0

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