Lines Matching +full:hard +full:- +full:wired
2 * Single-precision SVE cos(x) function.
4 * Copyright (c) 2019-2024, Arm Limited.
5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
16 /* Polynomial coefficients are hard-wired in FTMAD instructions. */
17 .neg_pio2_1 = -0x1.921fb6p+0f,
18 .neg_pio2_2 = 0x1.777a5cp-25f,
19 .neg_pio2_3 = 0x1.ee59dap-50f,
20 .inv_pio2 = 0x1.45f306p-1f,
38 SV_NAME_F1 (cos)(0x1.dea2f2p+19) got 0x1.fffe7ap-6
39 want 0x1.fffe76p-6. */
47 /* Load some constants in quad-word chunks to minimise memory access. */ in SV_NAME_F1()
48 svfloat32_t negpio2_and_invpio2 = svld1rq (svptrue_b32 (), &d->neg_pio2_1); in SV_NAME_F1()
51 svfloat32_t q = svmla_lane (sv_f32 (d->shift), r, negpio2_and_invpio2, 3); in SV_NAME_F1()
52 svfloat32_t n = svsub_x (pg, q, d->shift); in SV_NAME_F1()
54 /* r = |x| - n*(pi/2) (range reduction into -pi/4 .. pi/4). */ in SV_NAME_F1()
77 TEST_SIG (SV, F, 1, cos, -3.1, 3.1)
81 TEST_INTERVAL (SV_NAME_F1 (cos), 0x1p-4, 0x1p4, 500000)