more robust check in case where checked out destVgprHi==v0
@@ -6905,7 +6905,7 @@ class KernelWriterAssembly(KernelWriter):
bpl = numElementsPerLoad*self.bpeAB # bytesPerLoad
kStr += self.chooseGlobalRead(True, \
- bpl, destVgpr=destVgprHi if (hi16 and destVgprHi) else destVgpr, \
+ bpl, destVgpr=destVgprHi if (hi16 and destVgprHi != None) else destVgpr, \
addr0=vgpr(offsetVgpr), addr1=sgpr("Srd%s"%tc, 4), \
soffset=soffset, offset=offset, \
extraFields=extraFields, \
@@ -6923,7 +6923,7 @@ class KernelWriterAssembly(KernelWriter):
destVgpr="G2L%s+%u+%u"%(tc, g2lIdx, regIdx)
# load one element from address
kStr += self.chooseGlobalRead(False, \
- self.bpeAB, destVgpr=destVgprHi if (hi16 and destVgprHi) else destVgpr, \
+ self.bpeAB, destVgpr=destVgprHi if (hi16 and destVgprHi != None) else destVgpr, \
addr0=vgpr("GlobalReadAddr%s+%u"%(tc,graIdx),2), addr1="", \
soffset=0, offset=0, \
extraFields=extraFields, \
