Debian Codegraph @

gcc/testsuite/gcc.target/arm/asm-flag-4.c

raw
1 /* Test that we do not ice in thumb1 mode */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_arch_v4t_thumb_ok } */
4 /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */
5 /* { dg-options "-march=armv4t -mfloat-abi=softfp" } */
6
7 void __attribute__((target("arm"))) f(char *out)
8 {
9 asm("" : "=@ccne"(out[0]));
10 }
11
12 void __attribute__((target("thumb"))) g(char *out)
13 {
14 asm("" : "=@ccne"(out[0])); /* { dg-message ".asm. flags not supported" } */
15 }