aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/vector-dup-1.c
blob: 3475360462b41123d23af78f9fc4f5ed22cf0c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-additional-options "-fno-strict-aliasing" } */


/* PR target/103170 */
/* AARCH64 used to ICE on this for a typo in the string template. */
#define vector __attribute__((vector_size(4*sizeof(float))))

typedef vector float v4sf;

v4sf f(int t)
{
  float tt = *(float*)&t;
  asm("":"+r"(tt));
  return (v4sf){tt,tt,tt,tt};
}