Skip to content

Commit b3cfd5b

Browse files
committed
Precommit target features compatibility test
1 parent ff7bf79 commit b3cfd5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/mir-opt/inline/inline_compatibility.rs

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ pub unsafe fn f1() {
2929
sse2();
3030
}
3131

32+
// CHECK-LABEL: fn f2()
33+
// CHECK: bb0: {
34+
// CHECK-NEXT: return;
35+
#[target_feature(enable = "avx")]
36+
pub unsafe fn f2() {
37+
nop();
38+
}
39+
3240
#[inline]
3341
#[no_sanitize(address)]
3442
pub unsafe fn no_sanitize() {}

0 commit comments

Comments
 (0)