diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-05-23 10:42:33 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-05-23 16:57:17 -0700 |
commit | f1a80c05db8b08e71741bae8170f9e77e94bfc35 (patch) | |
tree | 75b1d9fd01049d3d5b8d10219edcadf28b746b7e | |
parent | ef85d150b59637b6eb116947c1d29e97d562e7db (diff) | |
download | gcc-f1a80c05db8b08e71741bae8170f9e77e94bfc35.zip gcc-f1a80c05db8b08e71741bae8170f9e77e94bfc35.tar.gz gcc-f1a80c05db8b08e71741bae8170f9e77e94bfc35.tar.bz2 |
x86: Avoid uninitialized variable in PR target/104441 test
PR target/104441
* gcc.target/i386/pr104441-1a.c (load8bit_4x4_avx2): Initialize
src23.
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr104441-1a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr104441-1a.c b/gcc/testsuite/gcc.target/i386/pr104441-1a.c index 83734f7..0931029 100644 --- a/gcc/testsuite/gcc.target/i386/pr104441-1a.c +++ b/gcc/testsuite/gcc.target/i386/pr104441-1a.c @@ -8,7 +8,7 @@ __attribute__((always_inline, target("avx2"))) static __m256i load8bit_4x4_avx2(const uint8_t *const src, const uint32_t stride) { - __m128i src01, src23; + __m128i src01, src23 = _mm_setzero_si128(); src01 = _mm_cvtsi32_si128(*(int32_t*)(src + 0 * stride)); src23 = _mm_insert_epi32(src23, *(int32_t *)(src + 3 * stride), 1); return _mm256_setr_m128i(src01, src23); |