From bb9033c26b6a84f4593c020a8078101e17a7b124 Mon Sep 17 00:00:00 2001 From: Tuan Ta Date: Sat, 18 Jun 2016 13:02:13 -0400 Subject: [PATCH] gpu-compute: Fixed a bug in decoding Atomic ST There is a mismatch between DataType and SrcDataType in constructing Atomic ST instruction. The mismatch causes atomic_store and atomic_store_explicit function to store incorrect value in memory. --- src/arch/hsail/insts/mem.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arch/hsail/insts/mem.hh b/src/arch/hsail/insts/mem.hh index 1db98d212..acc8434be 100644 --- a/src/arch/hsail/insts/mem.hh +++ b/src/arch/hsail/insts/mem.hh @@ -1556,11 +1556,11 @@ namespace HsailISA case Brig::BRIG_TYPE_B8: return decodeSt(ib, obj); case Brig::BRIG_TYPE_B16: - return decodeSt(ib, obj); + return decodeSt(ib, obj); case Brig::BRIG_TYPE_B32: - return decodeSt(ib, obj); + return decodeSt(ib, obj); case Brig::BRIG_TYPE_B64: - return decodeSt(ib, obj); + return decodeSt(ib, obj); default: fatal("AtomicSt: Operand type mismatch %d\n", ib->type); } } else { -- 2.30.2