Skip to content

Commit b1e03fe

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of #40431 - fsasm:master, r=BurntSushi
rustc: Whitelist the FMA target feature This commit adds the entry `"fma\0"` to the whitelist for the x86 target. LLVM already supports fma but rustc did not directly. Previously rustc permitted `+fma` in the target-feature argument and enabled the use of FMA instructions, but it did not list it in the configuration and attributes. fixes #40406
2 parents 7b0caa5 + 4d23ca4 commit b1e03fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/target_features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ARM_WHITELIST: &'static [&'static str] = &["neon\0", "vfp2\0", "vfp3\0", "
2525
const X86_WHITELIST: &'static [&'static str] = &["avx\0", "avx2\0", "bmi\0", "bmi2\0", "sse\0",
2626
"sse2\0", "sse3\0", "sse4.1\0", "sse4.2\0",
2727
"ssse3\0", "tbm\0", "lzcnt\0", "popcnt\0",
28-
"sse4a\0", "rdrnd\0", "rdseed\0"];
28+
"sse4a\0", "rdrnd\0", "rdseed\0", "fma\0"];
2929

3030
/// Add `target_feature = "..."` cfgs for a variety of platform
3131
/// specific features (SSE, NEON etc.).

0 commit comments

Comments
 (0)