comparison gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/bfcvt-compile.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
18:1830386684a0 19:2b5abeee2509
1 /* { dg-do assemble { target { aarch64*-*-* } } } */
2 /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
3 /* { dg-add-options arm_v8_2a_bf16_neon } */
4 /* { dg-additional-options "-save-temps" } */
5 /* { dg-final { check-function-bodies "**" "" {-O[^0]} } } */
6 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */
7
8 #include <arm_neon.h>
9
10 /*
11 **test_bfcvtn:
12 ** bfcvtn v0.4h, v0.4s
13 ** ret
14 */
15 bfloat16x4_t test_bfcvtn (float32x4_t a)
16 {
17 return vcvt_bf16_f32 (a);
18 }
19
20 /*
21 **test_bfcvtnq:
22 ** bfcvtn v0.4h, v0.4s
23 ** ret
24 */
25 bfloat16x8_t test_bfcvtnq (float32x4_t a)
26 {
27 return vcvtq_low_bf16_f32 (a);
28 }
29
30 /*
31 **test_bfcvtnq2:
32 ** bfcvtn2 v0.8h, v1.4s
33 ** ret
34 */
35 bfloat16x8_t test_bfcvtnq2 (bfloat16x8_t inactive, float32x4_t a)
36 {
37 return vcvtq_high_bf16_f32 (inactive, a);
38 }
39
40 /*
41 **test_bfcvt:
42 ** bfcvt h0, s0
43 ** ret
44 */
45 bfloat16_t test_bfcvt (float32_t a)
46 {
47 return vcvth_bf16_f32 (a);
48 }