diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-10-20 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-10-24 22:44:59 +0200 |
| commit | b3cfd5bb04d1622b4bd35da7983e29321be18e47 (patch) | |
| tree | e8c7ddd68f866e9e32ab71ad785036f4e13f92b6 | |
| parent | ff7bf792ce7d6a8650fb3596e3afad82023c5e14 (diff) | |
| download | rust-b3cfd5bb04d1622b4bd35da7983e29321be18e47.tar.gz rust-b3cfd5bb04d1622b4bd35da7983e29321be18e47.zip | |
Precommit target features compatibility test
| -rw-r--r-- | tests/mir-opt/inline/inline_compatibility.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/mir-opt/inline/inline_compatibility.rs b/tests/mir-opt/inline/inline_compatibility.rs index 988fbe33336..8045ea39f95 100644 --- a/tests/mir-opt/inline/inline_compatibility.rs +++ b/tests/mir-opt/inline/inline_compatibility.rs @@ -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() {} |
