1/* PR target/8870 */
2/* Originator: otaylor@redhat.com */
3/* { dg-do compile } */
4/* { dg-options "-O1 -mmmx -march=k8" } */
5
6typedef short v4hi __attribute__ ((vector_size (8)));
7
8static inline v4hi cvtsi_v4hi (int i)
9{
10  long long tmp = i;
11  return (v4hi) tmp;
12}
13
14v4hi bar (unsigned short a)
15{
16  return cvtsi_v4hi (a);
17}
18