Add support for Vector Sum Across Partial 1/4 Saturated on PowerPC
This commit is contained in:
parent
668d8ff262
commit
eec1c178b3
@ -198,6 +198,20 @@
|
||||
"llvm": "vsum2sws",
|
||||
"ret": "s32",
|
||||
"args": ["0", "0"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "sum4{0.kind}bs",
|
||||
"width": [128],
|
||||
"llvm": "vsum4{0.kind}bs",
|
||||
"ret": "i32",
|
||||
"args": ["0NN", "0"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "sum4shs",
|
||||
"width": [128],
|
||||
"llvm": "vsum4shs",
|
||||
"ret": "s32",
|
||||
"args": ["0N", "0"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -377,6 +377,21 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vsum2sws")
|
||||
},
|
||||
"_vec_sum4sbs" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::I8x16, &::I32x4]; &INPUTS },
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vsum4sbs")
|
||||
},
|
||||
"_vec_sum4ubs" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::U8x16, &::U32x4]; &INPUTS },
|
||||
output: &::U32x4,
|
||||
definition: Named("llvm.ppc.altivec.vsum4ubs")
|
||||
},
|
||||
"_vec_sum4shs" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::I16x8, &::I32x4]; &INPUTS },
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vsum4shs")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user