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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr36438.c] - Rev 704

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2 -mmmx" } */
 
#include <mmintrin.h>
 
extern __m64 SetS16 (unsigned short, unsigned short,
		     unsigned short, unsigned short);
 
void foo(__m64* dest)
{
  __m64 mask = SetS16 (0x00FF, 0xFF00, 0x0000, 0x00FF);
 
  mask = _mm_slli_si64(mask, 8);
  mask = _mm_slli_si64(mask, 8);
 
  *dest = mask;
 
  _mm_empty ();
}
 

Go to most recent revision | 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.