Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/simd/scale_fpm.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O3 -march=armv9-a+fp8" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #include "arm_neon.h"
6
7 /*
8 ** test_vscale_f16:
9 ** fscale v0.4h, v0.4h, v1.4h
10 ** ret
11 */
12 float16x4_t
13 test_vscale_f16 (float16x4_t a, int16x4_t b)
14 {
15 return vscale_f16 (a, b);
16 }
17
18 /*
19 ** test_vscaleq_f16:
20 ** fscale v0.8h, v0.8h, v1.8h
21 ** ret
22 */
23 float16x8_t
24 test_vscaleq_f16 (float16x8_t a, int16x8_t b)
25 {
26 return vscaleq_f16 (a, b);
27 }
28
29 /*
30 ** test_vscale_f32:
31 ** fscale v0.2s, v0.2s, v1.2s
32 ** ret
33 */
34 float32x2_t
35 test_vscale_f32 (float32x2_t a, int32x2_t b)
36 {
37 return vscale_f32 (a, b);
38 }
39
40 /*
41 ** test_vscaleq_f32:
42 ** fscale v0.4s, v0.4s, v1.4s
43 ** ret
44 */
45 float32x4_t
46 test_vscaleq_f32 (float32x4_t a, int32x4_t b)
47 {
48 return vscaleq_f32 (a, b);
49 }
50
51 /*
52 ** test_vscaleq_f64:
53 ** fscale v0.2d, v0.2d, v1.2d
54 ** ret
55 */
56 float64x2_t
57 test_vscaleq_f64 (float64x2_t a, int64x2_t b)
58 {
59 return vscaleq_f64 (a, b);
60 }