summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/ultrasp5.c
blob: feb6cf244b8002263fa3a181aa2fbf7b068c0938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/10072 */
/* Originator: Peter van Hoof <p.van-hoof@qub.ac.uk> */

/* { dg-do compile } */
/* { dg-options "-std=c99 -O1 -mcpu=ultrasparc -ffast-math" } */

void p(int v)
{
  int i=v,j;
  float a,b,c,x[i];

  x[i] = (a/(((b)>(c)) ? (b) : (c)) - (((i) == (j)) ? 1.f : 0.f));
}