Skip to content

Commit 7bdf013

Browse files
committedSep 27, 2017
Add support for Vector Negative Multiply Subtract Float on PowerPC
1 parent e413814 commit 7bdf013

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎src/etc/platform-intrinsics/powerpc.json

+7
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@
227227
"ret": "f32",
228228
"args": ["0", "0", "0"]
229229
},
230+
{
231+
"intrinsic": "nmsub",
232+
"width": [128],
233+
"llvm": "vnmsubfp",
234+
"ret": "f32",
235+
"args": ["0", "0", "0"]
236+
},
230237
{
231238
"intrinsic": "expte",
232239
"width": [128],

‎src/librustc_platform_intrinsics/powerpc.rs

+5
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_nmsub" => Intrinsic {
406+
inputs: { static INPUTS: [&'static Type; 3] = [&::F32x4, &::F32x4, &::F32x4]; &INPUTS },
407+
output: &::F32x4,
408+
definition: Named("llvm.ppc.altivec.vnmsubfp")
409+
},
405410
"_vec_expte" => Intrinsic {
406411
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
407412
output: &::F32x4,

0 commit comments

Comments
 (0)