Skip to content

Commit

Permalink
Precommit target features compatibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Oct 24, 2023
1 parent ff7bf79 commit b3cfd5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/mir-opt/inline/inline_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down

0 comments on commit b3cfd5b

Please sign in to comment.