Skip to content

Commit 5339d4e

Browse files
Fix target-feature inline test to be less flaky
1 parent ef031c8 commit 5339d4e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/codegen/target-feature-inline-closure.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::arch::x86_64::*;
1212
#[cfg(target_arch = "x86_64")]
1313
#[target_feature(enable = "avx")]
1414
fn with_avx(x: __m256) -> __m256 {
15-
// CHECK: fadd
15+
// CHECK: fadd <8 x float>
1616
let add = {
1717
#[inline(always)]
1818
|x, y| unsafe { _mm256_add_ps(x, y) }
@@ -24,14 +24,10 @@ fn with_avx(x: __m256) -> __m256 {
2424
#[no_mangle]
2525
#[cfg(target_arch = "x86_64")]
2626
unsafe fn without_avx(x: __m256) -> __m256 {
27-
// CHECK-NOT: fadd
27+
// CHECK-NOT: fadd <8 x float>
2828
let add = {
2929
#[inline(always)]
3030
|x, y| unsafe { _mm256_add_ps(x, y) }
3131
};
3232
add(x, x)
3333
}
34-
35-
// Don't allow the above CHECK-NOT to accidentally match a commit hash in the
36-
// compiler version.
37-
// CHECK-LABEL: rustc version

0 commit comments

Comments
 (0)