Add support for Vector Unpack High and Low on PowerPC
This commit is contained in:
parent
88fc6dc369
commit
5d91eda8b3
2 changed files with 34 additions and 0 deletions
|
@ -142,6 +142,20 @@
|
|||
"llvm": "vpkpx",
|
||||
"ret": "s16",
|
||||
"args": ["s32", "s32"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "unpackl{1.kind}{1.data_type_short}",
|
||||
"width": [128],
|
||||
"llvm": "vupkl{1.kind}{1.data_type_short}",
|
||||
"ret": "s(16-32)",
|
||||
"args": ["0N"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "unpackh{1.kind}{1.data_type_short}",
|
||||
"width": [128],
|
||||
"llvm": "vupkh{1.kind}{1.data_type_short}",
|
||||
"ret": "s(16-32)",
|
||||
"args": ["0N"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -317,6 +317,26 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
|||
output: &::I16x8,
|
||||
definition: Named("llvm.ppc.altivec.vpkpx")
|
||||
},
|
||||
"_vec_unpacklsb" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 1] = [&::I8x16]; &INPUTS },
|
||||
output: &::I16x8,
|
||||
definition: Named("llvm.ppc.altivec.vupklsb")
|
||||
},
|
||||
"_vec_unpacklsh" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 1] = [&::I16x8]; &INPUTS },
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vupklsh")
|
||||
},
|
||||
"_vec_unpackhsb" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 1] = [&::I8x16]; &INPUTS },
|
||||
output: &::I16x8,
|
||||
definition: Named("llvm.ppc.altivec.vupkhsb")
|
||||
},
|
||||
"_vec_unpackhsh" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 1] = [&::I16x8]; &INPUTS },
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vupkhsh")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue