2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / lhs-2.c
blob871dbab1f806b3ab1d0c12ee42406bc4c0d3da17
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power6" } } */
4 /* { dg-options "-O2 -mcpu=power6 -msched-groups" } */
5 /* { dg-final { scan-assembler "ori 1,1,0" } } */
7 /* Test generation of group ending nop in load hit store situation. */
8 typedef union {
9 double val;
10 struct {
11 unsigned int w1;
12 unsigned int w2;
14 } words;
16 unsigned int f (double d)
18 words u;
19 u.val = d;
20 return u.w2;