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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [mmx2.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do link { target i?86-*-* x86_64-*-* } }
2
// { dg-options "-O2 -mmmx" }
3
 
4
#include 
5
 
6
static union u { __m64 m; long long l; } u;
7
extern "C" void abort (void);
8
 
9
__attribute__((noinline))
10
void bar (__m64 x)
11
{
12
  u.m = x;
13
}
14
 
15
int
16
main ()
17
{
18
  bar (_mm_set_pi32 (0x000000FF,0xFFFF00FF));
19
  _mm_empty ();
20
  if (u.l != 0xffffff00ffLL)
21
    abort ();
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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