aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr107358.c
blob: 4ab75e064f89d3570a560ac4f94eb5f300526c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* PR c++/107358 */
/* { dg-do compile } */
/* { dg-options "-O2 -fexcess-precision=standard" } */

typedef float __attribute__((vector_size (4 * sizeof (float)))) A;
typedef double __attribute__((vector_size (2 * sizeof (double)))) B;

void
foo (A *x)
{
  *x = *x - 124.225514990f;
}

void
bar (A *x, float y)
{
  *x = *x - y;
}

void
baz (B *x)
{
  *x = *x + 124.225514990f;
}

void
qux (B *x, double y)
{
  *x = *x + y;
}