Skip to content

Commit ade5ead

Browse files
committed
Add support for the Power8 and Power9 features on PowerPC
1 parent a1995d3 commit ade5ead

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_trans/llvm_util.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ const X86_WHITELIST: &'static [&'static str] = &["avx\0", "avx2\0", "bmi\0", "bm
8080

8181
const HEXAGON_WHITELIST: &'static [&'static str] = &["hvx\0", "hvx-double\0"];
8282

83-
const POWERPC_WHITELIST: &'static [&'static str] = &["altivec\0", "vsx\0"];
83+
const POWERPC_WHITELIST: &'static [&'static str] = &["altivec\0",
84+
"power8-altivec\0", "power9-altivec\0",
85+
"power8-vector\0", "power9-vector\0",
86+
"vsx\0"];
8487

8588
pub fn target_features(sess: &Session) -> Vec<Symbol> {
8689
let target_machine = create_target_machine(sess);

0 commit comments

Comments
 (0)