aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/pr52483-4.c
blob: 743e8dc546e39d7dd5bbab1bbb7084b632e5a061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Check that loads/stores from/to volatile floating point mems utilize
   indexed addressing modes. */
/* { dg-do compile }  */
/* { dg-options "-O1" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m3" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } }  */
/* { dg-final { scan-assembler-times "@\\(r0," 2 } } */

float
test_00 (volatile float* x, unsigned int y)
{
  return x[y];
}

void
test_100 (volatile float* x, unsigned int y, float z)
{
  x[y] = z;
}