• Home
  • Raw
  • Download

Lines Matching refs:inputs

28     std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize);  in TEST()  local
30 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
31 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
32 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
34 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
40 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
42 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
43 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
44 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
46 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
52 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
56 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
58 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
60 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
62 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
70 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
74 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
76 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
78 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
80 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
88 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
92 inputs[i] = fp32_from_bits(n + i); in TEST()
94 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
96 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
98 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
106 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
110 inputs[i] = fp32_from_bits(n + i); in TEST()
112 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
114 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
116 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) 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_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
132 const uint32_t reference_output = fp32_to_bits(std::floor(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(n + i); in TEST()
148 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
150 const uint32_t reference_output = fp32_to_bits(std::floor(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
162 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
163 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
164 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
166 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
172 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
174 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
175 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
176 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
178 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
184 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
188 inputs[i] = fp32_from_bits(n + i); in TEST()
190 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
192 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
194 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
202 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
206 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
208 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
210 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
212 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
220 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
224 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
226 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
228 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
230 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
238 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
242inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
244 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
246 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
248 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
256 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
260 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
262 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
264 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
266 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
274 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
278inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
280 xnn_math_f32_roundd__sse_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
282 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
284 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
294 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
296 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
297 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
298 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
300 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
306 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
308 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
309 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
310 const uint32_t reference_output = fp32_to_bits(std::floor(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
322 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
324 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
326 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
328 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
336 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
340 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
342 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
344 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
346 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
354 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
358 inputs[i] = fp32_from_bits(n + i); in TEST()
360 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
362 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
364 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
372 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
376 inputs[i] = fp32_from_bits(n + i); in TEST()
378 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
380 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
382 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
390 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
394 inputs[i] = fp32_from_bits(n + i); in TEST()
396 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
398 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
400 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
408 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
412 inputs[i] = fp32_from_bits(n + i); in TEST()
414 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
416 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
418 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
426 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
428 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
429 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
430 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
432 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
438 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
440 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
441 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
442 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
444 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
450 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
454 inputs[i] = fp32_from_bits(n + i); in TEST()
456 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
458 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
460 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
468 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
472 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
474 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
476 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
478 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
486 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
490 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
492 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
494 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
496 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
504 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
508inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
510 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
512 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
514 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
522 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
526 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
528 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
530 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
532 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
540 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
544inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
546 xnn_math_f32_roundd__sse2_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
548 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
550 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
560 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
562 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
563 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
564 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
566 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
572 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
574 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
575 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
576 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
578 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
584 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
588 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
590 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
592 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
594 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
602 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
606 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
608 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
610 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
612 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
620 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
624 inputs[i] = fp32_from_bits(n + i); in TEST()
626 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
628 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
630 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
638 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
642 inputs[i] = fp32_from_bits(n + i); in TEST()
644 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
646 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
648 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
656 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
660 inputs[i] = fp32_from_bits(n + i); in TEST()
662 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
664 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
666 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
674 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
678 inputs[i] = fp32_from_bits(n + i); in TEST()
680 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
682 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
684 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
692 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
694 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
695 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
696 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
698 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
704 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
706 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
707 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
708 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
710 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
716 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
720 inputs[i] = fp32_from_bits(n + i); in TEST()
722 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
724 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
726 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
734 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
738 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
740 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
742 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
744 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
752 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
756 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
758 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
760 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
762 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
770 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
774inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
776 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
778 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
780 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
788 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
792 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
794 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
796 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
798 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
806 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
810inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
812 xnn_math_f32_roundd__sse41(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
814 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
816 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
826 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
828 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
829 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
830 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
832 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
838 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
840 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
841 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
842 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
844 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
850 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
854 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
856 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
858 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
860 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
868 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
872 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
874 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
876 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
878 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
886 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
890 inputs[i] = fp32_from_bits(n + i); in TEST()
892 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
894 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
896 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
904 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
908 inputs[i] = fp32_from_bits(n + i); in TEST()
910 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
912 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
914 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
922 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
926 inputs[i] = fp32_from_bits(n + i); in TEST()
928 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
930 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
932 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
940 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
944 inputs[i] = fp32_from_bits(n + i); in TEST()
946 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
948 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
950 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
958 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
960 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
961 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
962 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
964 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
970 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
972 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
973 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
974 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
976 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
982 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
986 inputs[i] = fp32_from_bits(n + i); in TEST()
988 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
990 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
992 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1000 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1004 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
1006 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1008 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1010 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1018 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1022 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1024 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1026 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1028 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1036 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1040inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1042 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1044 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1046 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1054 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1058 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1060 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1062 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1064 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1072 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1076inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1078 xnn_math_f32_roundd__neon_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1080 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1082 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1092 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1094 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
1095 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1096 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1098 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1104 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1106 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
1107 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1108 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1110 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1116 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1120 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
1122 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1124 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1126 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1134 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1138 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
1140 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1142 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1144 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1152 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1156 inputs[i] = fp32_from_bits(n + i); in TEST()
1158 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1160 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1162 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1170 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1174 inputs[i] = fp32_from_bits(n + i); in TEST()
1176 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1178 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1180 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1188 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1192 inputs[i] = fp32_from_bits(n + i); in TEST()
1194 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1196 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1198 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1206 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1210 inputs[i] = fp32_from_bits(n + i); in TEST()
1212 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1214 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1216 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1224 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1226 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
1227 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1228 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1230 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1236 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1238 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
1239 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1240 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1242 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1248 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1252 inputs[i] = fp32_from_bits(n + i); in TEST()
1254 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1256 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1258 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1266 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1270 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
1272 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1274 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1276 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1284 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1288 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1290 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1292 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1294 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1302 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1306inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1308 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1310 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1312 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1320 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1324 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1326 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1328 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1330 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1338 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1342inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1344 xnn_math_f32_roundd__neon_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1346 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1348 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1358 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1360 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
1361 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1362 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1364 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1370 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1372 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
1373 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1374 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1376 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1382 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1386 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
1388 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1390 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1392 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1400 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1404 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
1406 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1408 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1410 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1418 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1422 inputs[i] = fp32_from_bits(n + i); in TEST()
1424 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1426 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1428 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1436 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1440 inputs[i] = fp32_from_bits(n + i); in TEST()
1442 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1444 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1446 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1454 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1458 inputs[i] = fp32_from_bits(n + i); in TEST()
1460 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1462 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1464 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1472 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1476 inputs[i] = fp32_from_bits(n + i); in TEST()
1478 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1480 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1482 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1490 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1492 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
1493 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1494 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1496 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1502 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1504 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
1505 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1506 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1508 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1514 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1518 inputs[i] = fp32_from_bits(n + i); in TEST()
1520 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1522 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1524 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1532 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1536 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
1538 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1540 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1542 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1550 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1554 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1556 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1558 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1560 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1568 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1572inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1574 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1576 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1578 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1586 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1590 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1592 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1594 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1596 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1604 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1608inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1610 xnn_math_f32_roundd__neonv8(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1612 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1614 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1624 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1626 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
1627 xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1628 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1630 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1636 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1638 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
1639 xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1640 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1642 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1648 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1652 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
1654 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1656 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1658 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1666 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1670 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
1672 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1674 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1676 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1684 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1688 inputs[i] = fp32_from_bits(n + i); in TEST()
1690 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1692 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1694 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1702 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1706 inputs[i] = fp32_from_bits(n + i); in TEST()
1708 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1710 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1712 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1720 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1724 inputs[i] = fp32_from_bits(n + i); in TEST()
1726 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1728 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1730 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1738 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1742 inputs[i] = fp32_from_bits(n + i); in TEST()
1744 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1746 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1748 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1756 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1758 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
1759 xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1760 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1762 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1768 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1770 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
1771 xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1772 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1774 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1780 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1784 inputs[i] = fp32_from_bits(n + i); in TEST()
1786 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1788 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1790 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1798 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1802 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
1804 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1806 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1808 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1816 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1820 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1822 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1824 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1826 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1834 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1838inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1840 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1842 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1844 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1852 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1856 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1858 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1860 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1862 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1870 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1874inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
1876 … xnn_math_f32_roundd__wasmsimd_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1878 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1880 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1890 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1892 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
1893 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1894 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1896 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1902 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1904 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
1905 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1906 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
1908 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
1914 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1918 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
1920 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1922 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1924 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1932 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1936 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
1938 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1940 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1942 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1950 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1954 inputs[i] = fp32_from_bits(n + i); in TEST()
1956 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1958 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1960 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1968 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1972 inputs[i] = fp32_from_bits(n + i); in TEST()
1974 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1976 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1978 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
1986 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
1990 inputs[i] = fp32_from_bits(n + i); in TEST()
1992 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
1994 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
1996 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2004 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2008 inputs[i] = fp32_from_bits(n + i); in TEST()
2010 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2012 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2014 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2022 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2024 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
2025 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2026 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2028 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2034 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2036 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
2037 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2038 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2040 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2046 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2050 inputs[i] = fp32_from_bits(n + i); in TEST()
2052 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2054 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2056 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2064 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2068 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
2070 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2072 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2074 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2082 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2086 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2088 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2090 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2092 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2100 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2104inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2106 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2108 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2110 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2118 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2122 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2124 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2126 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2128 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2136 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2140inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2142 xnn_math_f32_roundd__wasmsimd_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2144 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2146 … << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2155 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2157 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
2158 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2159 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2161 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2167 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2169 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
2170 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2171 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2173 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2179 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2183 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
2185 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2187 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2189 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2197 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2201 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
2203 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2205 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2207 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2215 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2219 inputs[i] = fp32_from_bits(n + i); in TEST()
2221 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2223 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2225 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2233 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2237 inputs[i] = fp32_from_bits(n + i); in TEST()
2239 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2241 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2243 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2251 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2255 inputs[i] = fp32_from_bits(n + i); in TEST()
2257 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2259 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2261 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2269 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2273 inputs[i] = fp32_from_bits(n + i); in TEST()
2275 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2277 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2279 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2287 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2289 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
2290 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2291 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2293 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2299 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2301 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
2302 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2303 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2305 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2311 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2315 inputs[i] = fp32_from_bits(n + i); in TEST()
2317 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2319 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2321 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2329 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2333 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
2335 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2337 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2339 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2347 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2351 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2353 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2355 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2357 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2365 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2369inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2371 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2373 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2375 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2383 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2387 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2389 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2391 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2393 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2401 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2405inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2407 xnn_math_f32_roundd__scalar_addsub(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2409 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2411 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2419 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2421 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x00000000)); in TEST()
2422 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2423 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2425 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2431 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2433 std::fill(inputs.begin(), inputs.end(), UINT32_C(0x80000000)); in TEST()
2434 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2435 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2437 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2443 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2447 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x00000001))); in TEST()
2449 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2451 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2453 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2461 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2465 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x80000001))); in TEST()
2467 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2469 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2471 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2479 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2483 inputs[i] = fp32_from_bits(n + i); in TEST()
2485 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2487 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2489 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2497 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2501 inputs[i] = fp32_from_bits(n + i); in TEST()
2503 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2505 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2507 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2515 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2519 inputs[i] = fp32_from_bits(n + i); in TEST()
2521 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2523 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2525 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2533 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2537 inputs[i] = fp32_from_bits(n + i); in TEST()
2539 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2541 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2543 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2551 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2553 std::fill(inputs.begin(), inputs.end(), +std::numeric_limits<float>::infinity()); in TEST()
2554 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2555 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2557 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2563 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2565 std::fill(inputs.begin(), inputs.end(), -std::numeric_limits<float>::infinity()); in TEST()
2566 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2567 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[0])); in TEST()
2569 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[0]) in TEST()
2575 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2579 inputs[i] = fp32_from_bits(n + i); in TEST()
2581 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2583 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2585 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2593 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2597 inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | (n + i)); in TEST()
2599 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2601 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2603 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2611 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2615 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2617 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2619 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2621 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2629 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2633inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2635 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2637 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2639 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2647 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2651 inputs[i] = fp32_from_bits(std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2653 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2655 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2657 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()
2665 std::vector<float, AlignedAllocator<float, 64>> inputs(kBlockSize); in TEST() local
2669inputs[i] = fp32_from_bits(UINT32_C(0x80000000) | std::max<uint32_t>(n + i, UINT32_C(0x7F800001))); in TEST()
2671 xnn_math_f32_roundd__scalar_cvt(kBlockSize * sizeof(float), inputs.data(), outputs.data()); in TEST()
2673 const uint32_t reference_output = fp32_to_bits(std::floor(inputs[i])); in TEST()
2675 << "input = 0x" << std::hex << std::setw(8) << std::setfill('0') << fp32_to_bits(inputs[i]) in TEST()