aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr87507.c
blob: ae7c1d861522923c98abaf300901e11d81dcf70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-require-effective-target int128 } */
/* { dg-options "-O2 -mdejagnu-cpu=power8" } */

typedef struct
{
  __int128_t x;
  __int128_t y;
} foo_t;

void
foo (long cond, foo_t *dst, __int128_t src)
{
  if (cond)
  {
    dst->x = src;
    dst->y = src;
  }
}

/* { dg-final { scan-assembler-times {\mstd\M} 4 } } */
/* { dg-final { scan-assembler-not {\mld\M} } } */