Fix codegen tests
This commit is contained in:
parent
22c5952944
commit
520a5a535f
@ -12,4 +12,4 @@ pub unsafe fn crc32sse(v: u8) -> u32 {
|
|||||||
_mm_crc32_u8(out, v)
|
_mm_crc32_u8(out, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK: attributes #0 {{.*"target-features"=".*\+sse4.2,\+crc32"}}
|
// CHECK: attributes #0 {{.*"target-features"=".*\+sse4.2,\+crc32.*"}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//@ revisions: COMPAT INCOMPAT
|
//@ revisions: COMPAT INCOMPAT
|
||||||
//@ needs-llvm-components: x86
|
//@ needs-llvm-components: x86
|
||||||
//@ compile-flags: --target=x86_64-unknown-linux-gnu -Copt-level=3
|
//@ compile-flags: --target=x86_64-unknown-linux-gnu -Copt-level=3
|
||||||
//@ [COMPAT] compile-flags: -Ctarget-feature=+avx2,+avx
|
//@ [COMPAT] compile-flags: -Ctarget-feature=+avx2,+avx,+sse4.2,+sse4.1,+ssse3,+sse3
|
||||||
//@ [INCOMPAT] compile-flags: -Ctarget-feature=-avx2,-avx
|
//@ [INCOMPAT] compile-flags: -Ctarget-feature=-avx2,-avx
|
||||||
|
|
||||||
// See also tests/assembly/target-feature-multiple.rs
|
// See also tests/assembly/target-feature-multiple.rs
|
||||||
@ -39,8 +39,8 @@ pub unsafe fn banana() -> u32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CHECK: attributes [[APPLEATTRS]]
|
// CHECK: attributes [[APPLEATTRS]]
|
||||||
// COMPAT-SAME: "target-features"="+avx2,+avx,+avx"
|
// COMPAT-SAME: "target-features"="+avx2,+avx,{{.*}}"
|
||||||
// INCOMPAT-SAME: "target-features"="-avx2,-avx,+avx"
|
// INCOMPAT-SAME: "target-features"="-avx2,-avx,+avx,{{.*}}"
|
||||||
// CHECK: attributes [[BANANAATTRS]]
|
// CHECK: attributes [[BANANAATTRS]]
|
||||||
// COMPAT-SAME: "target-features"="+avx2,+avx"
|
// COMPAT-SAME: "target-features"="+avx2,+avx,{{.*}}"
|
||||||
// INCOMPAT-SAME: "target-features"="-avx2,-avx"
|
// INCOMPAT-SAME: "target-features"="-avx2,-avx"
|
||||||
|
Loading…
Reference in New Issue
Block a user