diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-10-29 12:35:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-29 12:35:00 +0100 |
| commit | 2b98ecd34520329aa4a5169ebc7daa381807aedb (patch) | |
| tree | d0b46633b716c78713ceeb7b8e15eef396940d5e /tests | |
| parent | 20debcd3450035b0e62f03060a1dd18bb3b41f54 (diff) | |
| parent | c094ba0be45b1d11fd906776b57ec5785b1ef284 (diff) | |
| download | rust-2b98ecd34520329aa4a5169ebc7daa381807aedb.tar.gz rust-2b98ecd34520329aa4a5169ebc7daa381807aedb.zip | |
Rollup merge of #117082 - fortanix:raoul/fix_closure_inherit_target_feature_sgx, r=Mark-Simulacrum
Fix closure-inherit-target-feature test for SGX platform PR #116078 adds the `closure-inherit-target-feature.rs` test that checks the generated assembly code for closures. These checks explicitly check the presence of `ret` instructions. This is incompatible with the SGX target as it explicitly rewrites all `ret` instructions to mitigate LVI vulnerabilities of certain processors. This PR simply ignores these tests for the SGX platform. cc: ```@jethrogb```
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/assembly/closure-inherit-target-feature.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/assembly/closure-inherit-target-feature.rs b/tests/assembly/closure-inherit-target-feature.rs index 24802603452..7acda76e25f 100644 --- a/tests/assembly/closure-inherit-target-feature.rs +++ b/tests/assembly/closure-inherit-target-feature.rs @@ -1,4 +1,5 @@ // only-x86_64 +// ignore-sgx Tests incompatible with LVI mitigations // assembly-output: emit-asm // make sure the feature is not enabled at compile-time // compile-flags: -C opt-level=3 -C target-feature=-sse4.1 -C llvm-args=-x86-asm-syntax=intel |
