Precommit target features compatibility test

This commit is contained in:
Tomasz Miąsko 2023-10-20 00:00:00 +00:00
parent ff7bf792ce
commit b3cfd5bb04

View File

@ -29,6 +29,14 @@ pub unsafe fn f1() {
sse2();
}
// CHECK-LABEL: fn f2()
// CHECK: bb0: {
// CHECK-NEXT: return;
#[target_feature(enable = "avx")]
pub unsafe fn f2() {
nop();
}
#[inline]
#[no_sanitize(address)]
pub unsafe fn no_sanitize() {}