We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a453f7d commit 4fda952Copy full SHA for 4fda952
IGC/Compiler/CISACodeGen/Emu64OpsPass.cpp
@@ -2059,6 +2059,7 @@ bool InstExpander::visitExtractElement(ExtractElementInst& EEI) {
2059
V = IRB->CreateBitCast(V, Emu->getV2Int32Ty(NumElts));
2060
// Re-calculate indices to Lo and Hi parts.
2061
Value* Idx = EEI.getIndexOperand();
2062
+ Idx = IRB->CreateZExt(Idx, IRB->getInt32Ty());
2063
Idx = IRB->CreateMul(Idx, IRB->getInt32(2));
2064
Value* IdxLo = IRB->CreateAdd(Idx, IRB->getInt32(0));
2065
Value* IdxHi = IRB->CreateAdd(Idx, IRB->getInt32(1));
0 commit comments