Add support for Vector Multiply Add Float on PowerPC

This commit is contained in:
Luca Barbato 2017-08-04 00:19:58 +00:00
parent c3041e8b9e
commit f6f828c670
2 changed files with 12 additions and 0 deletions

View File

@ -219,6 +219,13 @@
"llvm": "vsumsws",
"ret": "s32",
"args": ["0", "0"]
},
{
"intrinsic": "madd",
"width": [128],
"llvm": "vmaddfp",
"ret": "f32",
"args": ["0", "0", "0"]
}
]
}

View File

@ -397,6 +397,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
output: &::I32x4,
definition: Named("llvm.ppc.altivec.vsumsws")
},
"_vec_madd" => Intrinsic {
inputs: { static INPUTS: [&'static Type; 3] = [&::F32x4, &::F32x4, &::F32x4]; &INPUTS },
output: &::F32x4,
definition: Named("llvm.ppc.altivec.vmaddfp")
},
_ => return None,
})
}