aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-mmx-3.c
blob: f44fa0fbfdd70daef3207ba09d528e41b1cef92c (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 { target i?86-*-* } } */
/* { dg-options "-O1 -mmmx -march=i686" } */

typedef int v4hi __attribute__ ((mode (V4HI)));

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

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