Add support for the Power8 and Power9 features on PowerPC

This commit is contained in:
Luca Barbato 2017-07-27 13:30:51 +00:00
parent a1995d3973
commit ade5ead38e

View File

@ -80,7 +80,10 @@ unsafe fn configure_llvm(sess: &Session) {
const HEXAGON_WHITELIST: &'static [&'static str] = &["hvx\0", "hvx-double\0"];
const POWERPC_WHITELIST: &'static [&'static str] = &["altivec\0", "vsx\0"];
const POWERPC_WHITELIST: &'static [&'static str] = &["altivec\0",
"power8-altivec\0", "power9-altivec\0",
"power8-vector\0", "power9-vector\0",
"vsx\0"];
pub fn target_features(sess: &Session) -> Vec<Symbol> {
let target_machine = create_target_machine(sess);