gcc/testsuite/gcc.target/aarch64/acle/jcvt_1.c
raw| 1 | /* Test the __jcvt ACLE intrinsic. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -march=armv8.3-a" } */ |
| 4 | |
| 5 | #include <arm_acle.h> |
| 6 | |
| 7 | #ifdef __ARM_FEATURE_JCVT |
| 8 | int32_t |
| 9 | test_jcvt (double a) |
| 10 | { |
| 11 | return __jcvt (a); |
| 12 | } |
| 13 | #endif |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times "fjcvtzs\tw\[0-9\]+, d\[0-9\]+\n" 1 } } */ |