Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: gcc/gcc/testsuite/g++.dg/ext/attrib35.C

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/ext/asm3.C ('k') | gcc/gcc/testsuite/g++.dg/ext/attribute-test-2.C » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // { dg-do compile { target i*86-*-* x86_64-*-* } } 1 // { dg-do compile { target i?86-*-* x86_64-*-* } }
2 // { dg-options "-O3 -msse2" } 2 // { dg-options "-O3 -msse2" }
3 // { dg-require-effective-target sse2 }
3 4
4 // You can make NON-template typedefs with a large alignment. 5 // You can make NON-template typedefs with a large alignment.
5 typedef double AlignedDoubleType __attribute__((aligned(16))); 6 typedef double AlignedDoubleType __attribute__((aligned(16)));
6 7
7 template <typename RealType> 8 template <typename RealType>
8 RealType f(const RealType* p) 9 RealType f(const RealType* p)
9 { 10 {
10 // But if you use a template parameter it complains. 11 // But if you use a template parameter it complains.
11 typedef RealType AlignedRealType __attribute__((aligned(16))); 12 typedef RealType AlignedRealType __attribute__((aligned(16)));
12 13
13 return p[0]; 14 return p[0];
14 } 15 }
15 16
16 double f2(const double* p) 17 double f2(const double* p)
17 { 18 {
18 return f<double>(p); 19 return f<double>(p);
19 } 20 }
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/ext/asm3.C ('k') | gcc/gcc/testsuite/g++.dg/ext/attribute-test-2.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698