Skip to content

Commit 3740d32

Browse files
committed
Add support for Vector Ceiling on PowerPC
1 parent 73dd6ae commit 3740d32

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/etc/platform-intrinsics/powerpc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,13 @@
241241
"ret": "f32",
242242
"args": ["0"]
243243
},
244+
{
245+
"intrinsic": "ceil",
246+
"width": [128],
247+
"llvm": "vrfip",
248+
"ret": "f32",
249+
"args": ["0"]
250+
},
244251
{
245252
"intrinsic": "loge",
246253
"width": [128],

src/librustc_platform_intrinsics/powerpc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
412412
output: &::F32x4,
413413
definition: Named("llvm.ppc.altivec.vrfim")
414414
},
415+
"_vec_ceil" => Intrinsic {
416+
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
417+
output: &::F32x4,
418+
definition: Named("llvm.ppc.altivec.vrfip")
419+
},
415420
"_vec_loge" => Intrinsic {
416421
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
417422
output: &::F32x4,

0 commit comments

Comments
 (0)