summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr47968.c
blob: 4f33cf1f349fe7b819f515151a6abf342f087423 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-w -Wno-psabi" } */

typedef __attribute__ ((vector_size (16))) float float4;
typedef __attribute__ ((vector_size (16))) double double2;

float foo (double2 d2)
{
  float4 f4 = (float4) d2;
  return *(float *) &f4;
}