2 /* { dg-require-effective-target store_merge } */
3 /* { dg-options "-O2 -fdump-tree-store-merging" } */
5 extern void abort (void);
9 unsigned int size
: 31;
12 __attribute__((noipa
))
13 void foo1 (struct S1
*s
, unsigned int size
)
16 s
->size
= size
& 0x7FFFFFFF;
20 unsigned int flag
: 1;
21 unsigned int size
: 15;
25 __attribute__((noipa
))
26 void foo2 (struct S2
*s
, unsigned short size
)
39 __attribute__((noipa
))
40 void foo3 (struct S3
*s
, unsigned char n1
, unsigned char c
, unsigned char n2
)
53 foo1 (&s1
, 0x12345678);
54 if (s1
.flag
!= 1 || s1
.size
!= 0x12345678)
58 if (s2
.flag
!= 1 || s2
.size
!= 0x1234 || s2
.count
!= 0xABCD)
61 foo3 (&s3
, 0x12, 0x34, 0x56);
62 if (s3
.n1
!= 0x2 || s3
.c
!= 0x34 || s3
.n2
!= 0x6)
68 /* { dg-final { scan-tree-dump-times "Merging successful" 3 "store-merging" } } */