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/] [g++.dg/] [other/] [i386-1.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
2
/* { dg-options "-msse2" } */
3
/* { dg-require-effective-target sse2 } */
4
/* { dg-require-effective-target sse2_runtime } */
5
 
6
#include 
7
 
8
static void
9
sse2_test (void)
10
{
11
  float a = 1.0f;
12
  float b = 2.0f;
13
  float c = 3.0f;
14
  float r;
15
 
16
  __m128 v = _mm_set_ps(a, b, c, 0);
17
 
18
  v = (__m128)_mm_srli_si128((__m128i)v, 4);
19
  _mm_store_ss(&r, v);
20
  if (r != 3.0f)
21
    abort ();
22
}
23
 
24
int
25
main ()
26
{
27
  sse2_test ();
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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