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] - Rev 318

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O -msse" } */
/* { dg-require-effective-target sse } */
 
#include <xmmintrin.h>
 
typedef unsigned short v4hi __attribute__ ((vector_size (8)));
 
int f(unsigned short n)
{
   __m64 vec = (__m64)(v4hi){ 0, 0, 1, n };
   __m64 hw = _mm_mulhi_pi16 (vec, vec);
   return _mm_extract_pi16 (hw, 0);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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