Fix for __vec16_i64 element extracting
This commit is contained in:
@@ -4418,6 +4418,11 @@ void CWriter::visitShuffleVectorInst(llvm::ShuffleVectorInst &SVI) {
|
||||
}
|
||||
else {
|
||||
// Do an extractelement of this value from the appropriate input.
|
||||
if (OpElts != 1) { // all __vec16_* have overloaded operator []
|
||||
Out << "(" << GetValueName(Op)
|
||||
<< ")[" << SrcVal << "]";
|
||||
}
|
||||
else { // but __vec1_* don't have it
|
||||
Out << "((";
|
||||
printType(Out, llvm::PointerType::getUnqual(EltTy));
|
||||
Out << ")(&" << GetValueName(Op)
|
||||
@@ -4425,6 +4430,7 @@ void CWriter::visitShuffleVectorInst(llvm::ShuffleVectorInst &SVI) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Out << ")";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user