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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [encode-2.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* { dg-do assemble } */
2
/* { dg-options "-save-temps" } */
3
 
4
template 
5
struct Vec {
6
 T x, y;
7
 int z;
8
};
9
 
10
typedef struct {
11
  Vec dvec;
12
  Vec fvec;
13
  float fscalar;
14
  double dscalar;
15
  Vec chVec;
16
  int iscalar;
17
} anonymous;
18
 
19
Vec dd;
20
 
21
const char *enc = @encode(Vec);
22
const char *enc2 = @encode(Vec);
23
const char *enc3 = @encode(anonymous);
24
 
25
/* { dg-final { scan-assembler "{Vec=ffi}" } }  */
26
/* { dg-final { scan-assembler "{Vec=ddi}" } }  */
27
/* { dg-final { scan-file "encode-2.o" "{?={Vec=ddi}{Vec=ffi}fd{Vec=cci}i}" } }
28
/* { dg-final cleanup-saved-temps } */

powered by: WebSVN 2.1.0

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