[PATCH, GCC/ARM, 6/10] Clear GPRs inline when calling nscall function
[official-gcc.git] / gcc / testsuite / gcc.target / arm / asm-flag-5.c
blob304b80a4bfe5e192bf8e0c8d0fa9dfa0c65b69c1
1 /* Test error conditions of asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4 /* { dg-skip-if "" { arm_thumb1 } } */
6 void f_B(void) { _Bool x; asm("" : "=@cccc"(x)); }
7 void f_c(void) { char x; asm("" : "=@cccc"(x)); }
8 void f_s(void) { short x; asm("" : "=@cccc"(x)); }
9 void f_i(void) { int x; asm("" : "=@cccc"(x)); }
10 void f_l(void) { long x; asm("" : "=@cccc"(x)); }
11 void f_ll(void) { long long x; asm("" : "=@cccc"(x)); }
13 void f_f(void)
15 float x;
16 asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */
19 void f_d(void)
21 double x;
22 asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */
25 struct S { int x[3]; };
27 void f_S(void)
29 struct S x;
30 asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */