Skip to content

Commit 03a2aea

Browse files
committed
Add support for Vector 2 Raised to the Exponent Estimate Float on PowerPC
1 parent f6f828c commit 03a2aea

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
@@ -226,6 +226,13 @@
226226
"llvm": "vmaddfp",
227227
"ret": "f32",
228228
"args": ["0", "0", "0"]
229+
},
230+
{
231+
"intrinsic": "expte",
232+
"width": [128],
233+
"llvm": "vexptefp",
234+
"ret": "f32",
235+
"args": ["0"]
229236
}
230237
]
231238
}

src/librustc_platform_intrinsics/powerpc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
402402
output: &::F32x4,
403403
definition: Named("llvm.ppc.altivec.vmaddfp")
404404
},
405+
"_vec_expte" => Intrinsic {
406+
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
407+
output: &::F32x4,
408+
definition: Named("llvm.ppc.altivec.vexptefp")
409+
},
405410
_ => return None,
406411
})
407412
}

0 commit comments

Comments
 (0)