gcc: fix an uninitialized variable warning from G++ 4.5
authorNathan Binkert <nate@binkert.org>
Wed, 18 May 2011 18:06:23 +0000 (11:06 -0700)
committerNathan Binkert <nate@binkert.org>
Wed, 18 May 2011 18:06:23 +0000 (11:06 -0700)
src/arch/arm/isa/insts/macromem.isa

index d5800576c05d7590bbba82dcf2b991c77e05fa41..d5b44cd0535cfcd92c3c4775fe54f1a69e54a0b0 100644 (file)
@@ -541,6 +541,9 @@ let {{
             for (unsigned i = 0; i < %(sRegs)d; i++) {
                 destRegs.elements[i] = sourceRegs[i].elements[lane];
             }
+            for (unsigned i = %(sRegs)d; i < %(dRegs)d * perDReg; ++i) {
+                destRegs.elements[i] = 0;
+            }
 
             %(unloadRegs)s
             ''' % { "sRegs" : sRegs, "dRegs" : dRegs,