1 /* { dg-do compile }  */
2 /* { dg-options "-O2" }  */
3 /* { dg-final { scan-assembler-times "sh.add" 1 } }  */
4 
5 typedef struct
6 {
7   unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
8 }
9 __sigset_t;
10 int
__sigaddset(__sigset_t * __set,int __sig,int __stuff)11 __sigaddset (__sigset_t * __set, int __sig, int __stuff)
12 {
13   unsigned long int __word =
14     (((__sig) - 1) / (8 * sizeof (unsigned long int)));
15   return __set->__val[__word] = __stuff;
16 }
17