* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / asm-flag-5.c
blob4cb8949d22183014d0723b439cc90911255c457c
1 /* Test error conditions of asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 void f_B(void) { _Bool x; asm("" : "=@ccc"(x)); }
6 void f_c(void) { char x; asm("" : "=@ccc"(x)); }
7 void f_s(void) { short x; asm("" : "=@ccc"(x)); }
8 void f_i(void) { int x; asm("" : "=@ccc"(x)); }
9 void f_l(void) { long x; asm("" : "=@ccc"(x)); }
10 void f_ll(void) { long long x; asm("" : "=@ccc"(x)); }
12 void f_f(void)
14 float x;
15 asm("" : "=@ccc"(x)); /* { dg-error invalid type } */
18 void f_d(void)
20 double x;
21 asm("" : "=@ccc"(x)); /* { dg-error invalid type } */
24 struct S { int x[3]; };
26 void f_S(void)
28 struct S x;
29 asm("" : "=@ccc"(x)); /* { dg-error invalid type } */