gcc/testsuite/gcc.target/aarch64/sme/acle-asm/arm_has_sme_sc.c
raw| 1 | /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */ |
| 2 | |
| 3 | #define STREAMING_COMPATIBLE |
| 4 | #define NO_SHARED_ZA |
| 5 | #include "test_sme_acle.h" |
| 6 | |
| 7 | #pragma GCC target "+nosme" |
| 8 | |
| 9 | /* |
| 10 | ** test_nosme: |
| 11 | ** ... |
| 12 | ** bl __arm_sme_state |
| 13 | ** lsr x0, x0, #?63 |
| 14 | ** ... |
| 15 | */ |
| 16 | PROTO (test_nosme, int, ()) { return __arm_has_sme (); } |
| 17 | |
| 18 | #pragma GCC target "+sme" |
| 19 | |
| 20 | /* |
| 21 | ** test_sme: |
| 22 | ** mov w0, #?1 |
| 23 | ** ret |
| 24 | */ |
| 25 | PROTO (test_sme, int, ()) { return __arm_has_sme (); } |