Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr120427-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune=sapphirerapids" } */
3 /* { dg-final { scan-assembler-not "or\[lq\]?\[\\t \]+\\\$-1, \[0-9\]*\\(" } } */
4
5 struct __pthread_mutex_s
6 {
7 int __lock;
8 unsigned int __count;
9 int __owner;
10 unsigned int __nusers;
11 int __kind;
12 short __spins;
13 short __elision;
14 void *p[2];
15 };
16 typedef union
17 {
18 struct __pthread_mutex_s __data;
19 char __size[40];
20 long int __align;
21 } pthread_mutex_t;
22 typedef struct { pthread_mutex_t mutex; } __rtld_lock_recursive_t;
23 void
24 foo (__rtld_lock_recursive_t *lock, int i)
25 {
26 lock[i] = (__rtld_lock_recursive_t) {{ { -1, -1, -1, -1, 1,
27 -1, -1, { ((void *)-1) , ((void *)-1) } } }};
28 }