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] - Rev 703

Compare with Previous | Blame | View Log

/* { dg-do assemble } */
/* { dg-options "-save-temps" } */

template <class T>
struct Vec {
 T x, y;
 int z;
};

typedef struct {
  Vec<double> dvec;
  Vec<float> fvec;
  float fscalar;
  double dscalar;
  Vec<signed char> chVec;
  int iscalar;
} anonymous;

Vec<double> dd;

const char *enc = @encode(Vec<float>);
const char *enc2 = @encode(Vec<double>);
const char *enc3 = @encode(anonymous);

/* { dg-final { scan-assembler "{Vec<float>=ffi}" } }  */
/* { dg-final { scan-assembler "{Vec<double>=ddi}" } }  */
/* { dg-final { scan-file "encode-2.o" "{?={Vec<double>=ddi}{Vec<float>=ffi}fd{Vec<signed char>=cci}i}" } }
/* { dg-final cleanup-saved-temps } */

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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