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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [truncate-6.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 321 jeremybenn
/* setup_incoming_promotions should detect x to be already sign-extended due
2
   to PROMOTE_MODE.  Thus the truncation should be removed by combine.  Based
3
   on gcc.c-torture/execute/pr34070-2.c.  */
4
/* { dg-options "-O -mgp64" } */
5
/* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */
6
 
7
NOMIPS16 int f(unsigned int x, int n, int *p)
8
{
9
  if (p)
10
    *p = 1;
11
  return ((int)x) / (1 << n);
12
}

powered by: WebSVN 2.1.0

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