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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [i386-1.C] - Blame information for rev 774

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

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

powered by: WebSVN 2.1.0

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