arch-gcn3: Fix writelane src0,src1 usage
authorMichael LeBeane <Michael.Lebeane@amd.com>
Thu, 17 May 2018 21:17:24 +0000 (17:17 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Mon, 13 Jul 2020 19:47:47 +0000 (19:47 +0000)
Src1 should only be used for lane select.  The data should come
from src0.

Change-Id: Ibe960df2e56d351a3819b40194104d2972a5cd4c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29933
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
src/arch/gcn3/insts/instructions.cc

index 0256d469bbdfa0e888d3a4ac9c12aa4d39411b93..b923eaefff413ed7804dcd5cafb1322e6aba7f25 100644 (file)
@@ -30181,7 +30181,7 @@ namespace Gcn3ISA
         assert(!(extData.NEG & 0x2));
         assert(!(extData.NEG & 0x4));
 
-        vdst[src1.rawData() & 0x3f] = src1.rawData();
+        vdst[src1.rawData() & 0x3f] = src0.rawData();
 
         vdst.write();
     }