Test to check for a valid memory reference of a misaligned DImode memory
with -O3 -mpowerpc64. From-SVN: r74939
This commit is contained in:
parent
585de9be32
commit
fe5597f25e
1 changed files with 32 additions and 0 deletions
32
gcc/testsuite/gcc.dg/darwin-misaligned.c
Normal file
32
gcc/testsuite/gcc.dg/darwin-misaligned.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/* { dg-do compile { target powerpc*-*-darwin* } } */
|
||||
/* { dg-options "-O2 -force_cpusubtype_ALL -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);
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue