diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-06 19:56:21 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-06 19:56:21 +0000 |
| commit | 5339d4ef5b3e15a92594dd397c38db036566f54f (patch) | |
| tree | 8ae5fd44324e60508830696104e2b1ddcbe0d23f /tests/codegen | |
| parent | ef031c854da6432c86ac14c438ab96c7e349d85f (diff) | |
| download | rust-5339d4ef5b3e15a92594dd397c38db036566f54f.tar.gz rust-5339d4ef5b3e15a92594dd397c38db036566f54f.zip | |
Fix target-feature inline test to be less flaky
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/target-feature-inline-closure.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/codegen/target-feature-inline-closure.rs b/tests/codegen/target-feature-inline-closure.rs index 73bdbc0e1a8..5d54444f994 100644 --- a/tests/codegen/target-feature-inline-closure.rs +++ b/tests/codegen/target-feature-inline-closure.rs @@ -12,7 +12,7 @@ use std::arch::x86_64::*; #[cfg(target_arch = "x86_64")] #[target_feature(enable = "avx")] fn with_avx(x: __m256) -> __m256 { - // CHECK: fadd + // CHECK: fadd <8 x float> let add = { #[inline(always)] |x, y| unsafe { _mm256_add_ps(x, y) } @@ -24,14 +24,10 @@ fn with_avx(x: __m256) -> __m256 { #[no_mangle] #[cfg(target_arch = "x86_64")] unsafe fn without_avx(x: __m256) -> __m256 { - // CHECK-NOT: fadd + // CHECK-NOT: fadd <8 x float> let add = { #[inline(always)] |x, y| unsafe { _mm256_add_ps(x, y) } }; add(x, x) } - -// Don't allow the above CHECK-NOT to accidentally match a commit hash in the -// compiler version. -// CHECK-LABEL: rustc version |
