summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mmx-3.c
blob: 6022d5294e868ddcd32474541a8dad7fd354c283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR target/8870 */
/* Originator: otaylor@redhat.com */
/* { dg-do compile } */
/* { dg-options "-O1 -mmmx -march=k8" } */

typedef short v4hi __attribute__ ((vector_size (8)));

static inline v4hi cvtsi_v4hi (int i)
{
  long long tmp = i;
  return (v4hi) tmp;
}

v4hi bar (unsigned short a)
{
  return cvtsi_v4hi (a);
}