aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/pr52483-4.c
blob: 81a24d4f48118db9e20b076801eebfc2248032b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Check that loads/stores from/to volatile floating point mems utilize
   indexed addressing modes. */
/* { dg-do compile { target { any_fpu } } }  */
/* { dg-options "-O1" } */
/* { 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;
}