X86-64: Add -mskip-rax-setup
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / amd64-abi-9.c
blob4707eb7f1c25839227efd17207822192dabe4668
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 } } */
5 void foo (const char *, ...);
7 void
8 test1 (void)
10 foo ("%d", 20);
13 int
14 test2 (void)
16 foo ("%d", 20);
17 return 3;