Debian Codegraph @

gcc/testsuite/gcc.target/riscv/redundant-andi-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcb -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } } */
4
5 void frob (void);
6 typedef struct av AV;
7 typedef unsigned int U32;
8 struct av
9 {
10 void *dummy;
11 U32 sv_refcnt;
12 U32 sv_flags;
13 };
14 void
15 Perl_save_ary (AV *const oav)
16 {
17 AV *av;
18 unsigned int x1 = oav->sv_flags;
19 unsigned int x2 = x1 & 3221225472;
20 if (x2 == 2147483648)
21 frob ();
22 }
23
24 /* { dg-final { scan-assembler-not "andi\t" } } */
25