aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104511.c
blob: ad5430c67c841caa9162df448139b080f792cabe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile { target dfp } } */
/* { dg-options "-O -Wno-psabi" } */

typedef _Float64 __attribute__((__vector_size__ (32))) F;
typedef _Decimal32 __attribute__((__vector_size__ (16))) D;

extern void bar (void);

D g;
void
foo (F f)
{
  D d = __builtin_convertvector (f, D);
  bar ();
  g = d;
}