diff --git a/src/etc/platform-intrinsics/powerpc.json b/src/etc/platform-intrinsics/powerpc.json index 7f33eeb2b2228..acb6813887c5c 100644 --- a/src/etc/platform-intrinsics/powerpc.json +++ b/src/etc/platform-intrinsics/powerpc.json @@ -227,6 +227,13 @@ "ret": "f32", "args": ["0", "0", "0"] }, + { + "intrinsic": "nmsub", + "width": [128], + "llvm": "vnmsubfp", + "ret": "f32", + "args": ["0", "0", "0"] + }, { "intrinsic": "expte", "width": [128], diff --git a/src/librustc_platform_intrinsics/powerpc.rs b/src/librustc_platform_intrinsics/powerpc.rs index 30d76507b0c37..93ee9fe06dadf 100644 --- a/src/librustc_platform_intrinsics/powerpc.rs +++ b/src/librustc_platform_intrinsics/powerpc.rs @@ -402,6 +402,11 @@ pub fn find(name: &str) -> Option { output: &::F32x4, definition: Named("llvm.ppc.altivec.vmaddfp") }, + "_vec_nmsub" => Intrinsic { + inputs: { static INPUTS: [&'static Type; 3] = [&::F32x4, &::F32x4, &::F32x4]; &INPUTS }, + output: &::F32x4, + definition: Named("llvm.ppc.altivec.vnmsubfp") + }, "_vec_expte" => Intrinsic { inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS }, output: &::F32x4,