diff options
| author | Joe Richey <joerichey@google.com> | 2020-10-26 03:46:54 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2020-10-26 03:46:54 -0700 |
| commit | ad552bc17e9e494e039f3db180d4e63be44fe889 (patch) | |
| tree | c4da6484ef1f97be8927e8b96b6dc115ed1ddb70 /src | |
| parent | 8e6f69afc9b0943003ce51a53d1f59611e6601a3 (diff) | |
| download | rust-ad552bc17e9e494e039f3db180d4e63be44fe889.tar.gz rust-ad552bc17e9e494e039f3db180d4e63be44fe889.zip | |
Add compiler support for LLVM's x86 ERMSB feature
This change is needed for compiler-builtins to check for this feature when implementing memcpy/memset. See: https://github.com/rust-lang/compiler-builtins/pull/365 The change just does compile-time detection. I think that runtime detection will have to come in a follow-up CL to std-detect. Like all the CPU feature flags, this just references #44839 Signed-off-by: Joe Richey <joerichey@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/target-feature/gate.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/target-feature/gate.stderr | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/target-feature/gate.rs b/src/test/ui/target-feature/gate.rs index e4b78c76e16..164830fecee 100644 --- a/src/test/ui/target-feature/gate.rs +++ b/src/test/ui/target-feature/gate.rs @@ -26,6 +26,7 @@ // gate-test-rtm_target_feature // gate-test-f16c_target_feature // gate-test-riscv_target_feature +// gate-test-ermsb_target_feature #[target_feature(enable = "avx512bw")] //~^ ERROR: currently unstable diff --git a/src/test/ui/target-feature/gate.stderr b/src/test/ui/target-feature/gate.stderr index 2384a00aa47..2d6abcc0a01 100644 --- a/src/test/ui/target-feature/gate.stderr +++ b/src/test/ui/target-feature/gate.stderr @@ -1,5 +1,5 @@ error[E0658]: the target feature `avx512bw` is currently unstable - --> $DIR/gate.rs:30:18 + --> $DIR/gate.rs:31:18 | LL | #[target_feature(enable = "avx512bw")] | ^^^^^^^^^^^^^^^^^^^ |
