1 /* Test some of the valid @cc<cc> asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
4
f(char * out)5 void f(char *out)
6 {
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]));
10 }
11
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" } } */
19