Enable gcc.dg/vect/vect-early-break_21.c on x86_64
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / advsimd-intrinsics / vcvtah_u32_f16_1.c
blob5ae28fc11dbd8fb68a8724a043633327b8806f50
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_v8_2a_fp16_scalar_hw } */
3 /* { dg-add-options arm_v8_2a_fp16_scalar } */
5 #include <arm_fp16.h>
7 /* Input values. */
8 float16_t input[] =
10 0.0, -0.0,
11 123.4, -567.8,
12 -34.8, 1024,
13 663.1, 169.1,
14 -4.8, 77.0,
15 -144.5, -56.8,
17 (float16_t) -16, (float16_t) -15,
18 (float16_t) -14, (float16_t) -13,
21 /* Expected results (32-bit hexadecimal representation). */
22 uint32_t expected[] =
24 0x00000000,
25 0x00000000,
26 0x0000007b,
27 0x00000000,
28 0x00000000,
29 0x00000400,
30 0x00000297,
31 0x000000a9,
32 0x00000000,
33 0x0000004d,
34 0x00000000,
35 0x00000000,
36 0x00000000,
37 0x00000000,
38 0x00000000,
39 0x00000000
42 #define TEST_MSG "VCVTAH_U32_F16"
43 #define INSN_NAME vcvtah_u32_f16
45 #define INPUT input
46 #define EXPECTED expected
48 #define INPUT_TYPE float16_t
49 #define OUTPUT_TYPE uint32_t
50 #define OUTPUT_TYPE_SIZE 32
52 /* Include the template for unary scalar operations. */
53 #include "unary_scalar_op.inc"