Skip to content

Commit a6b30fc

Browse files
committed
Fix codegen tests
1 parent ef90290 commit a6b30fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/codegen/sse42-implies-crc32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ pub unsafe fn crc32sse(v: u8) -> u32 {
1212
_mm_crc32_u8(out, v)
1313
}
1414

15-
// CHECK: attributes #0 {{.*"target-features"=".*\+sse4.2,\+crc32"}}
15+
// CHECK: attributes #0 {{.*"target-features"=".*\+sse4.2,\+crc32.*"}}

tests/codegen/target-feature-overrides.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ revisions: COMPAT INCOMPAT
22
//@ needs-llvm-components: x86
33
//@ compile-flags: --target=x86_64-unknown-linux-gnu -Copt-level=3
4-
//@ [COMPAT] compile-flags: -Ctarget-feature=+avx2,+avx
4+
//@ [COMPAT] compile-flags: -Ctarget-feature=+avx2,+avx,+sse4.2,+sse4.1,+ssse3,+sse3
55
//@ [INCOMPAT] compile-flags: -Ctarget-feature=-avx2,-avx
66

77
// See also tests/assembly/target-feature-multiple.rs
@@ -39,8 +39,8 @@ pub unsafe fn banana() -> u32 {
3939
}
4040

4141
// CHECK: attributes [[APPLEATTRS]]
42-
// COMPAT-SAME: "target-features"="+avx2,+avx,+avx"
43-
// INCOMPAT-SAME: "target-features"="-avx2,-avx,+avx"
42+
// COMPAT-SAME: "target-features"="+avx2,+avx,{{.*}}"
43+
// INCOMPAT-SAME: "target-features"="-avx2,-avx,+avx,{{.*}}"
4444
// CHECK: attributes [[BANANAATTRS]]
45-
// COMPAT-SAME: "target-features"="+avx2,+avx"
45+
// COMPAT-SAME: "target-features"="+avx2,+avx,{{.*}}"
4646
// INCOMPAT-SAME: "target-features"="-avx2,-avx"

0 commit comments

Comments
 (0)