mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Added support for the following definition of shufflevector
<result> = shufflevector <n x <ty>> <v1>, <n x <ty>> <v2>, <m x i32> <mask> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58964 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1592,16 +1592,12 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
getValue(Record, OpNum, Vec1->getType(), Vec2))
|
||||
return Error("Invalid SHUFFLEVEC record");
|
||||
|
||||
const Type *MaskTy =
|
||||
VectorType::get(Type::Int32Ty,
|
||||
cast<VectorType>(Vec1->getType())->getNumElements());
|
||||
|
||||
if (getValue(Record, OpNum, MaskTy, Mask))
|
||||
if (getValueTypePair(Record, OpNum, NextValueNo, Mask))
|
||||
return Error("Invalid SHUFFLEVEC record");
|
||||
I = new ShuffleVectorInst(Vec1, Vec2, Mask);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case bitc::FUNC_CODE_INST_CMP: { // CMP: [opty, opval, opval, pred]
|
||||
// VFCmp/VICmp
|
||||
// or old form of ICmp/FCmp returning bool
|
||||
|
Reference in New Issue
Block a user