public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-718] x86: Avoid uninitialized variable in PR target/104441 test
@ 2022-05-23 23:57 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2022-05-23 23:57 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f1a80c05db8b08e71741bae8170f9e77e94bfc35

commit r13-718-gf1a80c05db8b08e71741bae8170f9e77e94bfc35
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon May 23 10:42:33 2022 -0700

    x86: Avoid uninitialized variable in PR target/104441 test
    
            PR target/104441
            * gcc.target/i386/pr104441-1a.c (load8bit_4x4_avx2): Initialize
            src23.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr104441-1a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr104441-1a.c b/gcc/testsuite/gcc.target/i386/pr104441-1a.c
index 83734f710bd..0931029f2bb 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-23 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 23:57 [gcc r13-718] x86: Avoid uninitialized variable in PR target/104441 test H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).