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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [darwin-misaligned.c] - Rev 816

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

/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-O2 -mpowerpc64" } */
 
typedef struct Nlm_rect {
  short sh1;
  short sh2;
  short sh3;
  short sh4;
} S8;
 
typedef struct udv_mouse_select {
    short Action_type;
    S8 rcClip;
    int pgp;
  } UDVselect;
 
UDVselect ms;
int UDV(S8 rcClip);
 
int main()
{
    ms.rcClip.sh1 = 1;
    ms.rcClip.sh4 = 4;
    return UDV(ms.rcClip);
}
 
int UDV(S8 rcClip){
 
	return !(rcClip.sh1 == 1 && rcClip.sh4 == 4);
}
 
 
 

Go to most recent revision | 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.