summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr69610-1.c
blob: a671b93392bdac8679415cb49a3691dcbe672790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Check that pre ARMv4 compilation still works.  */
/* { dg-do compile } */
/* { dg-options "-marm -march=armv3 -ftree-ter" } */
/* { dg-require-effective-target arm_arm_ok } */

typedef unsigned short v16u16 __attribute__ ((vector_size (16)));
typedef unsigned int v16u32 __attribute__ ((vector_size (16)));

unsigned short
foo (v16u16 v16u16_1, v16u32 v16u32_1)
{
  v16u16_1 += (v16u16) v16u32_1;
  return v16u16_1[5] + v16u32_1[1];
}