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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle6.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* Check that __int128 types are mangled.  */
2
/* { dg-do compile { target mips*-*-* } } */
3
 
4
#ifdef __mips64
5
typedef int int128 __attribute__ ((mode(TI)));
6
typedef unsigned int uint128 __attribute__ ((mode(TI)));
7
 
8
struct S
9
{
10
  int128 i;
11
  int128 func1 (int128) const { return i; }
12
  uint128 func2 (uint128) const { return i; }
13
};
14
 
15
int128 (S::*ptr1) (int128) const = &S::func1;
16
uint128 (S::*ptr2) (uint128) const = &S::func2;
17
#else
18
const char *str1 = "_ZNK1S5func1En";
19
const char *str2 = "_ZNK1S5func2Eo";
20
#endif
21
 
22
/* { dg-final { scan-assembler _ZNK1S5func1En } } */
23
/* { dg-final { scan-assembler _ZNK1S5func2Eo } } */

powered by: WebSVN 2.1.0

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