aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr94908.c
blob: 11a5f90e5dd9712425827607727dfd69b108cd1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR target/94908 */
/* { dg-do compile } */
/* { dg-options "-O2 -msse4.1" } */

typedef float v4sf __attribute__((vector_size(16)));

v4sf g();

v4sf f(v4sf a, v4sf b)
{
    return (v4sf){g()[1], a[1], a[2], a[3]};
}

/* { dg-final { scan-assembler "\[ \t\]v?insertps" } } */