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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [mmx2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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