OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr13366.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -msse" } */
3
/* { dg-require-effective-target sse } */
4
 
5
#include <xmmintrin.h>
6
 
7
typedef unsigned short v4hi __attribute__ ((vector_size (8)));
8
 
9
int f(unsigned short n)
10
{
11
   __m64 vec = (__m64)(v4hi){ 0, 0, 1, n };
12
   __m64 hw = _mm_mulhi_pi16 (vec, vec);
13
   return _mm_extract_pi16 (hw, 0);
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.