summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse2-pr91201-3.c
blob: 1fc5834ffeee060e716de2479f2c4a025f93fdc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/91201 */
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -mno-sse3 -mtune=generic -masm=att" } */
/* { dg-final { scan-assembler "\tmovd\t%xmm0, %eax" } } */
/* { dg-final { scan-assembler-not "\\(%" } } */

typedef unsigned char V __attribute__((vector_size (16)));

unsigned char
foo (V x)
{
  return x[0];
}