Add support for Vector Reciprocal Square Root Estimate Float on PowerPC
This commit is contained in:
parent
8fb0bcb56f
commit
73dd6aecc4
2 changed files with 12 additions and 0 deletions
|
|
@ -254,6 +254,13 @@
|
|||
"llvm": "vrefp",
|
||||
"ret": "f32",
|
||||
"args": ["0"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "rsqrte",
|
||||
"width": [128],
|
||||
"llvm": "vrsqrtefp",
|
||||
"ret": "f32",
|
||||
"args": ["0"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -422,6 +422,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
|||
output: &::F32x4,
|
||||
definition: Named("llvm.ppc.altivec.vrefp")
|
||||
},
|
||||
"_vec_rsqrte" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
|
||||
output: &::F32x4,
|
||||
definition: Named("llvm.ppc.altivec.vrsqrtefp")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue