mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-05 03:23:25 +00:00
Add support for Vector Pack Saturated on PowerPC
This commit is contained in:
parent
e40dc66f47
commit
c2cdcefead
@ -121,6 +121,13 @@
|
||||
"llvm": "vavg{0.kind}{0.data_type_short}",
|
||||
"ret": "i(8-32)",
|
||||
"args": ["0", "0"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "packs{0.kind}{1.data_type_short}",
|
||||
"width": [128],
|
||||
"llvm": "vpk{0.kind}{1.data_type_short}{0.kind}s",
|
||||
"ret": "i(8-16)",
|
||||
"args": ["0W", "1"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -282,6 +282,26 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
||||
output: &::U32x4,
|
||||
definition: Named("llvm.ppc.altivec.vavguw")
|
||||
},
|
||||
"_vec_packssh" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::I16x8, &::I16x8]; &INPUTS },
|
||||
output: &::I8x16,
|
||||
definition: Named("llvm.ppc.altivec.vpkshss")
|
||||
},
|
||||
"_vec_packsuh" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::U16x8, &::U16x8]; &INPUTS },
|
||||
output: &::U8x16,
|
||||
definition: Named("llvm.ppc.altivec.vpkuhus")
|
||||
},
|
||||
"_vec_packssw" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::I32x4, &::I32x4]; &INPUTS },
|
||||
output: &::I16x8,
|
||||
definition: Named("llvm.ppc.altivec.vpkswss")
|
||||
},
|
||||
"_vec_packsuw" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::U32x4, &::U32x4]; &INPUTS },
|
||||
output: &::U16x8,
|
||||
definition: Named("llvm.ppc.altivec.vpkuwus")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user