OSDN Git Service

2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / i386-mmx-3.c
1 /* PR target/8870 */
2 /* Originator: otaylor@redhat.com */
3 /* { dg-do compile { target i?86-*-* x86_64-*-*} } */
4 /* { dg-options "-O1 -mmmx -march=k8" } */
5
6 typedef short v4hi __attribute__ ((vector_size (8)));
7
8 static inline v4hi cvtsi_v4hi (int i)
9 {
10   long long tmp = i;
11   return (v4hi) tmp;
12 }
13
14 v4hi bar (unsigned short a)
15 {
16   return cvtsi_v4hi (a);
17 }