minimap2 0.2.25.1 → 0.2.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/ext/Rakefile +2 -2
- data/ext/minimap2/NEWS.md +9 -0
- data/ext/minimap2/README.md +2 -2
- data/ext/minimap2/cookbook.md +2 -2
- data/ext/minimap2/minimap.h +1 -1
- data/ext/minimap2/minimap2.1 +1 -1
- data/ext/minimap2/misc/paftools.js +1 -1
- data/ext/minimap2/python/mappy.pyx +1 -1
- data/ext/minimap2/setup.py +22 -32
- data/lib/minimap2/version.rb +1 -1
- metadata +1 -97
- data/ext/minimap2/lib/simde/CONTRIBUTING.md +0 -114
- data/ext/minimap2/lib/simde/COPYING +0 -20
- data/ext/minimap2/lib/simde/README.md +0 -333
- data/ext/minimap2/lib/simde/amalgamate.py +0 -58
- data/ext/minimap2/lib/simde/meson.build +0 -33
- data/ext/minimap2/lib/simde/netlify.toml +0 -20
- data/ext/minimap2/lib/simde/simde/arm/neon/float32x2.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/float32x4.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/float64x1.h +0 -142
- data/ext/minimap2/lib/simde/simde/arm/neon/float64x2.h +0 -145
- data/ext/minimap2/lib/simde/simde/arm/neon/int16x4.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/int16x8.h +0 -145
- data/ext/minimap2/lib/simde/simde/arm/neon/int32x2.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/int32x4.h +0 -143
- data/ext/minimap2/lib/simde/simde/arm/neon/int64x1.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/int64x2.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/int8x16.h +0 -147
- data/ext/minimap2/lib/simde/simde/arm/neon/int8x8.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/uint16x4.h +0 -134
- data/ext/minimap2/lib/simde/simde/arm/neon/uint16x8.h +0 -138
- data/ext/minimap2/lib/simde/simde/arm/neon/uint32x2.h +0 -134
- data/ext/minimap2/lib/simde/simde/arm/neon/uint32x4.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/uint64x1.h +0 -131
- data/ext/minimap2/lib/simde/simde/arm/neon/uint64x2.h +0 -135
- data/ext/minimap2/lib/simde/simde/arm/neon/uint8x16.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/uint8x8.h +0 -135
- data/ext/minimap2/lib/simde/simde/arm/neon.h +0 -97
- data/ext/minimap2/lib/simde/simde/check.h +0 -267
- data/ext/minimap2/lib/simde/simde/debug-trap.h +0 -83
- data/ext/minimap2/lib/simde/simde/hedley.h +0 -1899
- data/ext/minimap2/lib/simde/simde/simde-arch.h +0 -445
- data/ext/minimap2/lib/simde/simde/simde-common.h +0 -697
- data/ext/minimap2/lib/simde/simde/x86/avx.h +0 -5385
- data/ext/minimap2/lib/simde/simde/x86/avx2.h +0 -2402
- data/ext/minimap2/lib/simde/simde/x86/avx512bw.h +0 -391
- data/ext/minimap2/lib/simde/simde/x86/avx512f.h +0 -3389
- data/ext/minimap2/lib/simde/simde/x86/avx512vl.h +0 -112
- data/ext/minimap2/lib/simde/simde/x86/fma.h +0 -659
- data/ext/minimap2/lib/simde/simde/x86/mmx.h +0 -2210
- data/ext/minimap2/lib/simde/simde/x86/sse.h +0 -3696
- data/ext/minimap2/lib/simde/simde/x86/sse2.h +0 -5991
- data/ext/minimap2/lib/simde/simde/x86/sse3.h +0 -343
- data/ext/minimap2/lib/simde/simde/x86/sse4.1.h +0 -1783
- data/ext/minimap2/lib/simde/simde/x86/sse4.2.h +0 -105
- data/ext/minimap2/lib/simde/simde/x86/ssse3.h +0 -1053
- data/ext/minimap2/lib/simde/simde/x86/svml.h +0 -543
- data/ext/minimap2/lib/simde/test/CMakeLists.txt +0 -166
- data/ext/minimap2/lib/simde/test/arm/meson.build +0 -4
- data/ext/minimap2/lib/simde/test/arm/neon/meson.build +0 -23
- data/ext/minimap2/lib/simde/test/arm/neon/skel.c +0 -871
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon-internal.h +0 -134
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon.c +0 -39
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon.h +0 -10
- data/ext/minimap2/lib/simde/test/arm/neon/vadd.c +0 -1260
- data/ext/minimap2/lib/simde/test/arm/neon/vdup_n.c +0 -873
- data/ext/minimap2/lib/simde/test/arm/neon/vmul.c +0 -1084
- data/ext/minimap2/lib/simde/test/arm/neon/vsub.c +0 -1260
- data/ext/minimap2/lib/simde/test/arm/test-arm-internal.h +0 -18
- data/ext/minimap2/lib/simde/test/arm/test-arm.c +0 -20
- data/ext/minimap2/lib/simde/test/arm/test-arm.h +0 -8
- data/ext/minimap2/lib/simde/test/cmake/AddCompilerFlags.cmake +0 -171
- data/ext/minimap2/lib/simde/test/cmake/ExtraWarningFlags.cmake +0 -68
- data/ext/minimap2/lib/simde/test/meson.build +0 -64
- data/ext/minimap2/lib/simde/test/munit/COPYING +0 -21
- data/ext/minimap2/lib/simde/test/munit/Makefile +0 -55
- data/ext/minimap2/lib/simde/test/munit/README.md +0 -54
- data/ext/minimap2/lib/simde/test/munit/example.c +0 -351
- data/ext/minimap2/lib/simde/test/munit/meson.build +0 -37
- data/ext/minimap2/lib/simde/test/munit/munit.c +0 -2055
- data/ext/minimap2/lib/simde/test/munit/munit.h +0 -535
- data/ext/minimap2/lib/simde/test/run-tests.c +0 -20
- data/ext/minimap2/lib/simde/test/run-tests.h +0 -260
- data/ext/minimap2/lib/simde/test/x86/avx.c +0 -13752
- data/ext/minimap2/lib/simde/test/x86/avx2.c +0 -9977
- data/ext/minimap2/lib/simde/test/x86/avx512bw.c +0 -2664
- data/ext/minimap2/lib/simde/test/x86/avx512f.c +0 -10416
- data/ext/minimap2/lib/simde/test/x86/avx512vl.c +0 -210
- data/ext/minimap2/lib/simde/test/x86/fma.c +0 -2557
- data/ext/minimap2/lib/simde/test/x86/meson.build +0 -33
- data/ext/minimap2/lib/simde/test/x86/mmx.c +0 -2878
- data/ext/minimap2/lib/simde/test/x86/skel.c +0 -2984
- data/ext/minimap2/lib/simde/test/x86/sse.c +0 -5121
- data/ext/minimap2/lib/simde/test/x86/sse2.c +0 -9860
- data/ext/minimap2/lib/simde/test/x86/sse3.c +0 -486
- data/ext/minimap2/lib/simde/test/x86/sse4.1.c +0 -3446
- data/ext/minimap2/lib/simde/test/x86/sse4.2.c +0 -101
- data/ext/minimap2/lib/simde/test/x86/ssse3.c +0 -2084
- data/ext/minimap2/lib/simde/test/x86/svml.c +0 -1545
- data/ext/minimap2/lib/simde/test/x86/test-avx.h +0 -16
- data/ext/minimap2/lib/simde/test/x86/test-avx512.h +0 -25
- data/ext/minimap2/lib/simde/test/x86/test-mmx.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-sse.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-sse2.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-x86-internal.h +0 -196
- data/ext/minimap2/lib/simde/test/x86/test-x86.c +0 -48
- data/ext/minimap2/lib/simde/test/x86/test-x86.h +0 -8
@@ -1,210 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2018, 2019 Evan Nemerson <evan@nemerson.com>
|
2
|
-
*
|
3
|
-
* Permission is hereby granted, free of charge, to any person
|
4
|
-
* obtaining a copy of this software and associated documentation
|
5
|
-
* files (the "Software"), to deal in the Software without
|
6
|
-
* restriction, including without limitation the rights to use, copy,
|
7
|
-
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
8
|
-
* of the Software, and to permit persons to whom the Software is
|
9
|
-
* furnished to do so, subject to the following conditions:
|
10
|
-
*
|
11
|
-
* The above copyright notice and this permission notice shall be
|
12
|
-
* included in all copies or substantial portions of the Software.
|
13
|
-
*
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
18
|
-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19
|
-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
* SOFTWARE.
|
22
|
-
*/
|
23
|
-
|
24
|
-
#define SIMDE_TESTS_CURRENT_ISAX avx512vl
|
25
|
-
#include <simde/x86/avx512vl.h>
|
26
|
-
#include <test/x86/test-avx512.h>
|
27
|
-
|
28
|
-
#if defined(SIMDE_AVX512VL_NATIVE) || defined(SIMDE_NO_NATIVE) || defined(SIMDE_ALWAYS_BUILD_NATIVE_TESTS)
|
29
|
-
|
30
|
-
static MunitResult
|
31
|
-
test_simde_mm_cvtsepi16_epi8(const MunitParameter params[], void* data) {
|
32
|
-
(void) params;
|
33
|
-
(void) data;
|
34
|
-
|
35
|
-
const struct {
|
36
|
-
simde__m128i a;
|
37
|
-
simde__m128i r;
|
38
|
-
} test_vec[8] = {
|
39
|
-
{ simde_mm_set_epi16(INT16_C( -385), INT16_C(-14682), INT16_C( -6), INT16_C( 418),
|
40
|
-
INT16_C( 0), INT16_C(-24263), INT16_C(-21423), INT16_C( -13)),
|
41
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
42
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
43
|
-
INT8_C(-128), INT8_C(-128), INT8_C( -6), INT8_C( 127),
|
44
|
-
INT8_C( 0), INT8_C(-128), INT8_C(-128), INT8_C( -13)) },
|
45
|
-
{ simde_mm_set_epi16(INT16_C( 12), INT16_C( -1449), INT16_C( -1), INT16_C( -8),
|
46
|
-
INT16_C( 151), INT16_C( 68), INT16_C( -857), INT16_C( -1)),
|
47
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
48
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
49
|
-
INT8_C( 12), INT8_C(-128), INT8_C( -1), INT8_C( -8),
|
50
|
-
INT8_C( 127), INT8_C( 68), INT8_C(-128), INT8_C( -1)) },
|
51
|
-
{ simde_mm_set_epi16(INT16_C( 2343), INT16_C(-10678), INT16_C( -7895), INT16_C(-27557),
|
52
|
-
INT16_C( 4), INT16_C( 6853), INT16_C( -1), INT16_C( -4386)),
|
53
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
54
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
55
|
-
INT8_C( 127), INT8_C(-128), INT8_C(-128), INT8_C(-128),
|
56
|
-
INT8_C( 4), INT8_C( 127), INT8_C( -1), INT8_C(-128)) },
|
57
|
-
{ simde_mm_set_epi16(INT16_C( 2603), INT16_C(-10075), INT16_C( 1), INT16_C( -1),
|
58
|
-
INT16_C( -267), INT16_C( 0), INT16_C( 0), INT16_C( -3)),
|
59
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
60
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
61
|
-
INT8_C( 127), INT8_C(-128), INT8_C( 1), INT8_C( -1),
|
62
|
-
INT8_C(-128), INT8_C( 0), INT8_C( 0), INT8_C( -3)) },
|
63
|
-
{ simde_mm_set_epi16(INT16_C( 318), INT16_C( 609), INT16_C( 127), INT16_C( 2),
|
64
|
-
INT16_C( 326), INT16_C( 20), INT16_C( -1), INT16_C( -7)),
|
65
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
66
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
67
|
-
INT8_C( 127), INT8_C( 127), INT8_C( 127), INT8_C( 2),
|
68
|
-
INT8_C( 127), INT8_C( 20), INT8_C( -1), INT8_C( -7)) },
|
69
|
-
{ simde_mm_set_epi16(INT16_C( -57), INT16_C( 2093), INT16_C( 3059), INT16_C( 12),
|
70
|
-
INT16_C( 10), INT16_C( 274), INT16_C( 50), INT16_C( -7)),
|
71
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
72
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
73
|
-
INT8_C( -57), INT8_C( 127), INT8_C( 127), INT8_C( 12),
|
74
|
-
INT8_C( 10), INT8_C( 127), INT8_C( 50), INT8_C( -7)) },
|
75
|
-
{ simde_mm_set_epi16(INT16_C( 0), INT16_C( -3570), INT16_C( 1), INT16_C( 0),
|
76
|
-
INT16_C( -36), INT16_C( 0), INT16_C( 54), INT16_C( -5)),
|
77
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
78
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
79
|
-
INT8_C( 0), INT8_C(-128), INT8_C( 1), INT8_C( 0),
|
80
|
-
INT8_C( -36), INT8_C( 0), INT8_C( 54), INT8_C( -5)) },
|
81
|
-
{ simde_mm_set_epi16(INT16_C( 54), INT16_C( 92), INT16_C( 2), INT16_C( 185),
|
82
|
-
INT16_C( 4), INT16_C( 1983), INT16_C( 2567), INT16_C( 136)),
|
83
|
-
simde_mm_set_epi8(INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
84
|
-
INT8_C( 0), INT8_C( 0), INT8_C( 0), INT8_C( 0),
|
85
|
-
INT8_C( 54), INT8_C( 92), INT8_C( 2), INT8_C( 127),
|
86
|
-
INT8_C( 4), INT8_C( 127), INT8_C( 127), INT8_C( 127)) }
|
87
|
-
};
|
88
|
-
|
89
|
-
for (size_t i = 0 ; i < (sizeof(test_vec) / sizeof(test_vec[0])); i++) {
|
90
|
-
simde__m128i r = simde_mm_cvtsepi16_epi8(test_vec[i].a);
|
91
|
-
simde_assert_m128i_i8(r, ==, test_vec[i].r);
|
92
|
-
}
|
93
|
-
|
94
|
-
return MUNIT_OK;
|
95
|
-
}
|
96
|
-
|
97
|
-
static MunitResult
|
98
|
-
test_simde_mm256_cvtsepi16_epi8(const MunitParameter params[], void* data) {
|
99
|
-
(void) params;
|
100
|
-
(void) data;
|
101
|
-
|
102
|
-
const struct {
|
103
|
-
simde__m256i a;
|
104
|
-
simde__m128i r;
|
105
|
-
} test_vec[8] = {
|
106
|
-
{ simde_mm256_set_epi16(INT16_C( 447), INT16_C( -3887), INT16_C( 9), INT16_C( 6277),
|
107
|
-
INT16_C( 2), INT16_C( -314), INT16_C( 1617), INT16_C( 64),
|
108
|
-
INT16_C( 0), INT16_C( 1725), INT16_C( 801), INT16_C( -2),
|
109
|
-
INT16_C( -782), INT16_C( -381), INT16_C( 0), INT16_C( -1)),
|
110
|
-
simde_mm_set_epi8(INT8_C( 127), INT8_C(-128), INT8_C( 9), INT8_C( 127),
|
111
|
-
INT8_C( 2), INT8_C(-128), INT8_C( 127), INT8_C( 64),
|
112
|
-
INT8_C( 0), INT8_C( 127), INT8_C( 127), INT8_C( -2),
|
113
|
-
INT8_C(-128), INT8_C(-128), INT8_C( 0), INT8_C( -1)) },
|
114
|
-
{ simde_mm256_set_epi16(INT16_C( -1378), INT16_C( 1), INT16_C( 2482), INT16_C( 0),
|
115
|
-
INT16_C( 0), INT16_C( -2), INT16_C( -107), INT16_C( 7074),
|
116
|
-
INT16_C( -117), INT16_C( 3648), INT16_C( -25), INT16_C( -225),
|
117
|
-
INT16_C( 587), INT16_C( 15), INT16_C( 116), INT16_C( -1)),
|
118
|
-
simde_mm_set_epi8(INT8_C(-128), INT8_C( 1), INT8_C( 127), INT8_C( 0),
|
119
|
-
INT8_C( 0), INT8_C( -2), INT8_C(-107), INT8_C( 127),
|
120
|
-
INT8_C(-117), INT8_C( 127), INT8_C( -25), INT8_C(-128),
|
121
|
-
INT8_C( 127), INT8_C( 15), INT8_C( 116), INT8_C( -1)) },
|
122
|
-
{ simde_mm256_set_epi16(INT16_C( -602), INT16_C( 22836), INT16_C( -36), INT16_C( -417),
|
123
|
-
INT16_C( 7314), INT16_C( -135), INT16_C( 1), INT16_C( -1693),
|
124
|
-
INT16_C( -121), INT16_C( -342), INT16_C( 7), INT16_C( 3079),
|
125
|
-
INT16_C( 14), INT16_C( 56), INT16_C( -16), INT16_C( -10)),
|
126
|
-
simde_mm_set_epi8(INT8_C(-128), INT8_C( 127), INT8_C( -36), INT8_C(-128),
|
127
|
-
INT8_C( 127), INT8_C(-128), INT8_C( 1), INT8_C(-128),
|
128
|
-
INT8_C(-121), INT8_C(-128), INT8_C( 7), INT8_C( 127),
|
129
|
-
INT8_C( 14), INT8_C( 56), INT8_C( -16), INT8_C( -10)) },
|
130
|
-
{ simde_mm256_set_epi16(INT16_C( -171), INT16_C( 138), INT16_C( 235), INT16_C( 33),
|
131
|
-
INT16_C( 102), INT16_C( -4), INT16_C( 2), INT16_C( 461),
|
132
|
-
INT16_C( -30), INT16_C( -120), INT16_C( 34), INT16_C( 1),
|
133
|
-
INT16_C( 1637), INT16_C( 2), INT16_C( 2), INT16_C( -2)),
|
134
|
-
simde_mm_set_epi8(INT8_C(-128), INT8_C( 127), INT8_C( 127), INT8_C( 33),
|
135
|
-
INT8_C( 102), INT8_C( -4), INT8_C( 2), INT8_C( 127),
|
136
|
-
INT8_C( -30), INT8_C(-120), INT8_C( 34), INT8_C( 1),
|
137
|
-
INT8_C( 127), INT8_C( 2), INT8_C( 2), INT8_C( -2)) },
|
138
|
-
{ simde_mm256_set_epi16(INT16_C( -3), INT16_C( 0), INT16_C(-16994), INT16_C( 475),
|
139
|
-
INT16_C( 1), INT16_C( 5629), INT16_C( -14), INT16_C( 3),
|
140
|
-
INT16_C( -1612), INT16_C( 2680), INT16_C( -183), INT16_C( -202),
|
141
|
-
INT16_C( 0), INT16_C( -114), INT16_C( 11175), INT16_C( -3)),
|
142
|
-
simde_mm_set_epi8(INT8_C( -3), INT8_C( 0), INT8_C(-128), INT8_C( 127),
|
143
|
-
INT8_C( 1), INT8_C( 127), INT8_C( -14), INT8_C( 3),
|
144
|
-
INT8_C(-128), INT8_C( 127), INT8_C(-128), INT8_C(-128),
|
145
|
-
INT8_C( 0), INT8_C(-114), INT8_C( 127), INT8_C( -3)) },
|
146
|
-
{ simde_mm256_set_epi16(INT16_C( -62), INT16_C( -29), INT16_C( -13), INT16_C( 0),
|
147
|
-
INT16_C( -4), INT16_C( 6), INT16_C( 21), INT16_C( -2),
|
148
|
-
INT16_C( -55), INT16_C( 5), INT16_C( -7030), INT16_C(-31314),
|
149
|
-
INT16_C( 65), INT16_C( -7656), INT16_C( -53), INT16_C( -12)),
|
150
|
-
simde_mm_set_epi8(INT8_C( -62), INT8_C( -29), INT8_C( -13), INT8_C( 0),
|
151
|
-
INT8_C( -4), INT8_C( 6), INT8_C( 21), INT8_C( -2),
|
152
|
-
INT8_C( -55), INT8_C( 5), INT8_C(-128), INT8_C(-128),
|
153
|
-
INT8_C( 65), INT8_C(-128), INT8_C( -53), INT8_C( -12)) },
|
154
|
-
{ simde_mm256_set_epi16(INT16_C( -52), INT16_C( 250), INT16_C( -4), INT16_C( 163),
|
155
|
-
INT16_C( -1), INT16_C( -72), INT16_C( -689), INT16_C( -98),
|
156
|
-
INT16_C( -1), INT16_C( 27), INT16_C(-29046), INT16_C( 504),
|
157
|
-
INT16_C( 1), INT16_C( -668), INT16_C( 6), INT16_C( -130)),
|
158
|
-
simde_mm_set_epi8(INT8_C( -52), INT8_C( 127), INT8_C( -4), INT8_C( 127),
|
159
|
-
INT8_C( -1), INT8_C( -72), INT8_C(-128), INT8_C( -98),
|
160
|
-
INT8_C( -1), INT8_C( 27), INT8_C(-128), INT8_C( 127),
|
161
|
-
INT8_C( 1), INT8_C(-128), INT8_C( 6), INT8_C(-128)) },
|
162
|
-
{ simde_mm256_set_epi16(INT16_C( 3869), INT16_C( -3), INT16_C( 3307), INT16_C( -5),
|
163
|
-
INT16_C( -61), INT16_C( -5), INT16_C( -43), INT16_C( -7512),
|
164
|
-
INT16_C( 226), INT16_C( 75), INT16_C( 0), INT16_C( -1),
|
165
|
-
INT16_C( 1923), INT16_C( -25), INT16_C( 4919), INT16_C( -1)),
|
166
|
-
simde_mm_set_epi8(INT8_C( 127), INT8_C( -3), INT8_C( 127), INT8_C( -5),
|
167
|
-
INT8_C( -61), INT8_C( -5), INT8_C( -43), INT8_C(-128),
|
168
|
-
INT8_C( 127), INT8_C( 75), INT8_C( 0), INT8_C( -1),
|
169
|
-
INT8_C( 127), INT8_C( -25), INT8_C( 127), INT8_C( -1)) }
|
170
|
-
};
|
171
|
-
|
172
|
-
for (size_t i = 0 ; i < (sizeof(test_vec) / sizeof(test_vec[0])); i++) {
|
173
|
-
simde__m128i r = simde_mm256_cvtsepi16_epi8(test_vec[i].a);
|
174
|
-
simde_assert_m128i_i8(r, ==, test_vec[i].r);
|
175
|
-
}
|
176
|
-
|
177
|
-
return MUNIT_OK;
|
178
|
-
}
|
179
|
-
|
180
|
-
#endif /* defined(SIMDE_avx512vl_NATIVE) || defined(SIMDE_NO_NATIVE) || defined(SIMDE_ALWAYS_BUILD_NATIVE_TESTS) */
|
181
|
-
|
182
|
-
HEDLEY_DIAGNOSTIC_PUSH
|
183
|
-
HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
|
184
|
-
|
185
|
-
static MunitTest test_suite_tests[] = {
|
186
|
-
#if defined(SIMDE_AVX512VL_NATIVE) || defined(SIMDE_NO_NATIVE) || defined(SIMDE_ALWAYS_BUILD_NATIVE_TESTS)
|
187
|
-
|
188
|
-
SIMDE_TESTS_DEFINE_TEST(mm_cvtsepi16_epi8),
|
189
|
-
|
190
|
-
SIMDE_TESTS_DEFINE_TEST(mm256_cvtsepi16_epi8),
|
191
|
-
|
192
|
-
#endif /* defined(SIMDE_AVX512vl_NATIVE) || defined(SIMDE_NO_NATIVE) || defined(SIMDE_ALWAYS_BUILD_NATIVE_TESTS) */
|
193
|
-
{ NULL, NULL, NULL, NULL, MUNIT_TEST_OPTION_NONE, NULL }
|
194
|
-
};
|
195
|
-
|
196
|
-
HEDLEY_C_DECL MunitSuite* SIMDE_TESTS_GENERATE_SYMBOL(suite)(void) {
|
197
|
-
static MunitSuite suite = { (char*) "/" HEDLEY_STRINGIFY(SIMDE_TESTS_CURRENT_ISAX), test_suite_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE };
|
198
|
-
|
199
|
-
return &suite;
|
200
|
-
}
|
201
|
-
|
202
|
-
#if defined(SIMDE_TESTS_SINGLE_ISAX)
|
203
|
-
int main(int argc, char* argv[HEDLEY_ARRAY_PARAM(argc + 1)]) {
|
204
|
-
static MunitSuite suite = { "", test_suite_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE };
|
205
|
-
|
206
|
-
return munit_suite_main(&suite, NULL, argc, argv);
|
207
|
-
}
|
208
|
-
#endif /* defined(SIMDE_TESTS_SINGLE_ISAX) */
|
209
|
-
|
210
|
-
HEDLEY_DIAGNOSTIC_POP
|