Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/shrink_wrap_symbol_ref_1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-pro_and_epilogue" } */
3
4 extern char *asm_out_file;
5 extern void default_elf_asm_output_ascii (char *, const char *, int);
6
7 void
8 assemble_string (const char *p, int size)
9 {
10 int pos = 0;
11 int maximum = 2000;
12
13 while (pos < size)
14 {
15 int thissize = size - pos;
16
17 if (thissize > maximum)
18 thissize = maximum;
19
20 default_elf_asm_output_ascii (asm_out_file, p, thissize);;
21
22 pos += thissize;
23 p += thissize;
24 }
25 }
26
27 /* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" } } */