Debian Codegraph @

gcc/testsuite/gcc.target/i386/amd64-abi-9.c

raw
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mno-sse -mno-skip-rax-setup" } */
3 /* { dg-final { scan-assembler-times "xorl\[\\t \]*\\\%eax,\[\\t \]*%eax" 2 } } */
4
5 void foo (const char *, ...);
6
7 void
8 test1 (void)
9 {
10 foo ("%d", 20);
11 }
12
13 int
14 test2 (void)
15 {
16 foo ("%d", 20);
17 return 3;
18 }