diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2017-03-11 21:57:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-11 21:57:50 +0200 |
| commit | b1e03fe4bba0b8f2f92f14480bc31b7554e47fe9 (patch) | |
| tree | 14b070980e2c130e96037de9525acd2e2e5ca04b | |
| parent | 7b0caa58d9ff6ad0dca62a55a8d2e654c15d6fff (diff) | |
| parent | 4d23ca4b5fe6b9409b2738764c916564710dcc54 (diff) | |
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
| -rw-r--r-- | src/librustc_driver/target_features.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/target_features.rs b/src/librustc_driver/target_features.rs index 0744fbbd4e9..4f3abbb362f 100644 --- a/src/librustc_driver/target_features.rs +++ b/src/librustc_driver/target_features.rs @@ -25,7 +25,7 @@ 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"]; + "sse4a\0", "rdrnd\0", "rdseed\0", "fma\0"]; /// Add `target_feature = "..."` cfgs for a variety of platform /// specific features (SSE, NEON etc.). |
