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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [darwin-misaligned.c] - Blame information for rev 327

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

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do compile { target powerpc*-*-darwin* } } */
2
/* { dg-options "-O2 -mpowerpc64" } */
3
 
4
typedef struct Nlm_rect {
5
  short sh1;
6
  short sh2;
7
  short sh3;
8
  short sh4;
9
} S8;
10
 
11
typedef struct udv_mouse_select {
12
    short Action_type;
13
    S8 rcClip;
14
    int pgp;
15
  } UDVselect;
16
 
17
UDVselect ms;
18
int UDV(S8 rcClip);
19
 
20
int main()
21
{
22
    ms.rcClip.sh1 = 1;
23
    ms.rcClip.sh4 = 4;
24
    return UDV(ms.rcClip);
25
}
26
 
27
int UDV(S8 rcClip){
28
 
29
        return !(rcClip.sh1 == 1 && rcClip.sh4 == 4);
30
}
31
 
32
 

powered by: WebSVN 2.1.0

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