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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr13366.c] - Blame information for rev 691

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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