Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / pr107358.c
blob4ab75e064f89d3570a560ac4f94eb5f300526c49
1 /* PR c++/107358 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fexcess-precision=standard" } */
5 typedef float __attribute__((vector_size (4 * sizeof (float)))) A;
6 typedef double __attribute__((vector_size (2 * sizeof (double)))) B;
8 void
9 foo (A *x)
11 *x = *x - 124.225514990f;
14 void
15 bar (A *x, float y)
17 *x = *x - y;
20 void
21 baz (B *x)
23 *x = *x + 124.225514990f;
26 void
27 qux (B *x, double y)
29 *x = *x + y;