Skip to content

Commit a5847dc

Browse files
ViacheslavRbsys_zuul
authored andcommitted
Fixing address immediate offsets calculation.
Change-Id: I948d1b82574ad4df41272d4f8fba8198ff66c9da
1 parent 98fcf2e commit a5847dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ namespace IGC
12401240
// subReg * (size of var's type) is a0.0's immOffset;
12411241
// 2. otherwise (using VxH addressing mode),
12421242
// subReg is indeed an sub register number of a0.
1243-
newMod.subReg += thePart * 8;
1243+
newMod.subReg += thePart * visaNumLanes(toExecSize);
12441244
return newMod;
12451245
}
12461246

0 commit comments

Comments
 (0)