From 03de2c719af3334afc4764979dc70c99b731b088 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Sat, 4 Nov 2017 17:45:10 +0100 Subject: [PATCH] [xsave] whitelist xsave target features Whitelists `xsave`, `xsaveopt`, `xsavec`, `xsavec`. --- src/librustc_trans/llvm_util.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc_trans/llvm_util.rs b/src/librustc_trans/llvm_util.rs index 448feb5259d..35c4d3367ad 100644 --- a/src/librustc_trans/llvm_util.rs +++ b/src/librustc_trans/llvm_util.rs @@ -76,7 +76,9 @@ const ARM_WHITELIST: &'static [&'static str] = &["neon\0", "vfp2\0", "vfp3\0", " const X86_WHITELIST: &'static [&'static str] = &["avx\0", "avx2\0", "bmi\0", "bmi2\0", "sse\0", "sse2\0", "sse3\0", "sse4.1\0", "sse4.2\0", "ssse3\0", "tbm\0", "lzcnt\0", "popcnt\0", - "sse4a\0", "rdrnd\0", "rdseed\0", "fma\0"]; + "sse4a\0", "rdrnd\0", "rdseed\0", "fma\0", + "xsave\0", "xsaveopt\0", "xsavec\0", + "xsaves\0"]; const HEXAGON_WHITELIST: &'static [&'static str] = &["hvx\0", "hvx-double\0"];