Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcb -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } } */
4
5
6 typedef struct sv SV;
7
8 typedef struct magic MAGIC;
9 typedef short I16;
10 typedef unsigned short U16;
11 typedef int I32;
12 typedef unsigned int U32;
13 struct sv
14 {
15 U32 sv_refcnt;
16 U32 sv_flags;
17 };
18 struct magic
19 {
20 U16 mg_private;
21 };
22 extern SV **PL_psig_ptr;
23 int
24 Perl_magic_setsig (SV *sv, MAGIC *mg, const char *s)
25 {
26 I32 i;
27 i = (I16) mg->mg_private;
28 if (sv)
29 {
30 PL_psig_ptr[i] = (++((sv)->sv_refcnt), ((SV *) ((void *) (sv))));
31 ((sv)->sv_flags &= ~0x00080000);
32 }
33 else
34 {
35 PL_psig_ptr[i] = ((void *) 0);
36 }
37 return 0;
38 }
39
40 /* { dg-final { scan-assembler-not "andi\t" } } */
41