Lines Matching refs:inputs
28 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
32 inputs[i] = fp32_from_bits(n + i); in TEST()
34 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
36 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
38 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
46 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
50 inputs[i] = fp32_from_bits(n + i); in TEST()
52 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
54 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
56 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
64 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
68 inputs[i] = fp32_from_bits(n + i); in TEST()
70 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
72 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
74 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
82 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
86 inputs[i] = fp32_from_bits(n + i); in TEST()
88 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
90 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
92 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
100 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
102 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
103 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
104 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
106 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
112 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
114 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
115 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
116 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
118 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
124 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
128 inputs[i] = fp32_from_bits(n + i); in TEST()
130 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
132 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
134 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
142 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
146 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
148 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
150 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
152 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
160 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
164 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
166 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
168 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
170 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
178 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
182 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
184 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
186 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
188 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
196 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
200 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
202 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
204 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
206 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
214 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
218 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
220 xnn_math_f32_roundne__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
222 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
224 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
234 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
238 inputs[i] = fp32_from_bits(n + i); in TEST()
240 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
242 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
244 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
252 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
256 inputs[i] = fp32_from_bits(n + i); in TEST()
258 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
260 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
262 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
270 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
274 inputs[i] = fp32_from_bits(n + i); in TEST()
276 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
278 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
280 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
288 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
292 inputs[i] = fp32_from_bits(n + i); in TEST()
294 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
296 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
298 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
306 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
308 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
309 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
310 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
312 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
318 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
320 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
321 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
322 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
324 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
330 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
334 inputs[i] = fp32_from_bits(n + i); in TEST()
336 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
338 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
340 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
348 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
352 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
354 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
356 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
358 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
366 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
370 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
372 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
374 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
376 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
384 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
388 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
390 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
392 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
394 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
402 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
406 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
408 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
410 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
412 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
420 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
424 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
426 xnn_math_f32_roundne__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
428 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
430 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
440 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
444 inputs[i] = fp32_from_bits(n + i); in TEST()
446 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
448 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
450 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
458 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
462 inputs[i] = fp32_from_bits(n + i); in TEST()
464 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
466 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
468 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
476 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
480 inputs[i] = fp32_from_bits(n + i); in TEST()
482 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
484 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
486 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
494 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
498 inputs[i] = fp32_from_bits(n + i); in TEST()
500 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
502 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
504 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
512 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
514 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
515 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
516 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
518 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
524 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
526 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
527 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
528 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
530 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
536 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
540 inputs[i] = fp32_from_bits(n + i); in TEST()
542 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
544 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
546 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
554 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
558 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
560 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
562 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
564 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
572 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
576 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
578 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
580 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
582 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
590 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
594 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
596 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
598 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
600 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
608 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
612 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
614 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
616 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
618 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
626 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
630 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
632 xnn_math_f32_roundne__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
634 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
636 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
646 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
650 inputs[i] = fp32_from_bits(n + i); in TEST()
652 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
654 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
656 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
664 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
668 inputs[i] = fp32_from_bits(n + i); in TEST()
670 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
672 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
674 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
682 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
686 inputs[i] = fp32_from_bits(n + i); in TEST()
688 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
690 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
692 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
700 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
704 inputs[i] = fp32_from_bits(n + i); in TEST()
706 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
708 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
710 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
718 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
720 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
721 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
722 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
724 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
730 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
732 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
733 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
734 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
736 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
742 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
746 inputs[i] = fp32_from_bits(n + i); in TEST()
748 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
750 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
752 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
760 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
764 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
766 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
768 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
770 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
778 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
782 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
784 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
786 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
788 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
796 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
800 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
802 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
804 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
806 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
814 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
818 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
820 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
822 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
824 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
832 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
836 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
838 xnn_math_f32_roundne__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
840 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
842 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
852 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
856 inputs[i] = fp32_from_bits(n + i); in TEST()
858 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
860 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
862 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
870 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
874 inputs[i] = fp32_from_bits(n + i); in TEST()
876 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
878 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
880 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
888 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
892 inputs[i] = fp32_from_bits(n + i); in TEST()
894 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
896 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
898 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
906 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
910 inputs[i] = fp32_from_bits(n + i); in TEST()
912 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
914 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
916 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
924 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
926 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
927 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
928 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
930 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
936 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
938 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
939 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
940 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
942 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
948 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
952 inputs[i] = fp32_from_bits(n + i); in TEST()
954 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
956 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
958 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
966 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
970 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
972 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
974 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
976 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
984 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
988 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
990 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
992 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
994 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1002 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1006 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1008 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1010 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1012 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1020 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1024 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1026 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1028 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1030 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1038 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1042 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1044 xnn_math_f32_roundne__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1046 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1048 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1058 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1062 inputs[i] = fp32_from_bits(n + i); in TEST()
1064 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1066 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1068 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1076 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1080 inputs[i] = fp32_from_bits(n + i); in TEST()
1082 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1084 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1086 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1094 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1098 inputs[i] = fp32_from_bits(n + i); in TEST()
1100 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1102 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1104 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1112 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1116 inputs[i] = fp32_from_bits(n + i); in TEST()
1118 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1120 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1122 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1130 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1132 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
1133 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1134 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
1136 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1142 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1144 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
1145 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1146 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
1148 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1154 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1158 inputs[i] = fp32_from_bits(n + i); in TEST()
1160 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1162 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1164 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1172 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1176 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
1178 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1180 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1182 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1190 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1194 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1196 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1198 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1200 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1208 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1212 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1214 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1216 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1218 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1226 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1230 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1232 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1234 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1236 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1244 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1248 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1250 … xnn_math_f32_roundne__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1252 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1254 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1263 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1267 inputs[i] = fp32_from_bits(n + i); in TEST()
1269 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1271 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1273 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1281 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1285 inputs[i] = fp32_from_bits(n + i); in TEST()
1287 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1289 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1291 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1299 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1303 inputs[i] = fp32_from_bits(n + i); in TEST()
1305 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1307 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1309 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1317 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1321 inputs[i] = fp32_from_bits(n + i); in TEST()
1323 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1325 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1327 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1335 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1337 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
1338 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1339 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
1341 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1347 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1349 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
1350 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1351 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[0])); in TEST()
1353 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1359 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1363 inputs[i] = fp32_from_bits(n + i); in TEST()
1365 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1367 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1369 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1377 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1381 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
1383 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1385 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1387 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1395 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1399 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1401 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1403 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1405 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1413 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1417 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1419 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1421 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1423 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1431 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1435 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1437 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1439 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1441 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1449 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1453 …inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1455 xnn_math_f32_roundne__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1457 const uint32_t reference_output = fp32_to_bits(std::nearbyint(inputs[i])); in TEST()
1459 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()