Precommit target features compatibility test
This commit is contained in:
parent
ff7bf792ce
commit
b3cfd5bb04
1 changed files with 8 additions and 0 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue