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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile { target i?86-*-* x86_64-*-* } }
2
// { dg-options "-O3 -msse2" }
3
// { dg-require-effective-target sse2 }
4
 
5
// You can make NON-template typedefs with a large alignment.
6
typedef double AlignedDoubleType __attribute__((aligned(16)));
7
 
8
template 
9
RealType f(const RealType* p)
10
{
11
  // But if you use a template parameter it complains.
12
  typedef RealType AlignedRealType __attribute__((aligned(16)));
13
 
14
  return p[0];
15
}
16
 
17
double f2(const double* p)
18
{
19
  return f(p);
20
}

powered by: WebSVN 2.1.0

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