gcc/testsuite/gcc.target/aarch64/acle/chkfeat-1.c
raw| 1 | /* Test the __chkfeat ACLE intrinsic. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O1" } */ |
| 4 | /* { dg-final { check-function-bodies "**" "" } } */ |
| 5 | |
| 6 | #include <arm_acle.h> |
| 7 | |
| 8 | /* |
| 9 | ** test_chkfeat: |
| 10 | ** ... |
| 11 | ** mov x16, 1 |
| 12 | ** hint 40 // chkfeat x16 |
| 13 | ** eor x0, x16, 1 |
| 14 | ** ret |
| 15 | */ |
| 16 | uint64_t |
| 17 | test_chkfeat () |
| 18 | { |
| 19 | return __chkfeat (1); |
| 20 | } |