Add support for Vector Truncate on PowerPC
This commit is contained in:
parent
9dd3690017
commit
e41381454b
@ -255,6 +255,13 @@
|
|||||||
"ret": "f32",
|
"ret": "f32",
|
||||||
"args": ["0"]
|
"args": ["0"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"intrinsic": "trunc",
|
||||||
|
"width": [128],
|
||||||
|
"llvm": "vrfiz",
|
||||||
|
"ret": "f32",
|
||||||
|
"args": ["0"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"intrinsic": "loge",
|
"intrinsic": "loge",
|
||||||
"width": [128],
|
"width": [128],
|
||||||
|
@ -422,6 +422,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
|||||||
output: &::F32x4,
|
output: &::F32x4,
|
||||||
definition: Named("llvm.ppc.altivec.vrfin")
|
definition: Named("llvm.ppc.altivec.vrfin")
|
||||||
},
|
},
|
||||||
|
"_vec_trunc" => Intrinsic {
|
||||||
|
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
|
||||||
|
output: &::F32x4,
|
||||||
|
definition: Named("llvm.ppc.altivec.vrfiz")
|
||||||
|
},
|
||||||
"_vec_loge" => Intrinsic {
|
"_vec_loge" => Intrinsic {
|
||||||
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
|
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
|
||||||
output: &::F32x4,
|
output: &::F32x4,
|
||||||
|
Loading…
Reference in New Issue
Block a user