2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / asm-flag-1.c
blobbcc4952239caf75310d650180bc957446fca31c9
1 /* Test some of the valid @cc<cc> asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 void f(char *out)
7 asm("" : "=@cca"(out[0]), "=@ccc"(out[1]), "=@cce"(out[2]),
8 "=@ccg"(out[3]), "=@cco"(out[4]), "=@ccp"(out[5]),
9 "=@ccs"(out[6]));
12 /* { dg-final { scan-assembler "seta" } } */
13 /* { dg-final { scan-assembler "setc" } } */
14 /* { dg-final { scan-assembler "sete" } } */
15 /* { dg-final { scan-assembler "setg" } } */
16 /* { dg-final { scan-assembler "seto" } } */
17 /* { dg-final { scan-assembler "setp" } } */
18 /* { dg-final { scan-assembler "sets" } } */