diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2022-03-22 18:11:21 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2022-03-22 18:33:07 -0700 |
| commit | 6c19dc9a8662999e28b2084f072532630a4c2fc9 (patch) | |
| tree | dccd6efa9cf17ddbf88328a8b47bde24314f1311 /src/test | |
| parent | 8fa4ae8b2d3ec29d2e3139e99f219a7e0459af09 (diff) | |
| download | rust-6c19dc9a8662999e28b2084f072532630a4c2fc9.tar.gz rust-6c19dc9a8662999e28b2084f072532630a4c2fc9.zip | |
Fixup aarch64 smoke test
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/target-feature/aarch64-neon-works.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/ui/target-feature/aarch64-neon-works.rs b/src/test/ui/target-feature/aarch64-neon-works.rs index 7ddcfe7b290..3878806fd02 100644 --- a/src/test/ui/target-feature/aarch64-neon-works.rs +++ b/src/test/ui/target-feature/aarch64-neon-works.rs @@ -1,20 +1,19 @@ // only-aarch64 // run-pass +#![allow(dead_code)] +use std::arch::*; use std::arch::aarch64::*; // Smoke test to verify aarch64 code that enables NEON compiles. fn main() { - let zero = if is_aarch64_feature_detected!("neon") { + let _zero = if is_aarch64_feature_detected!("neon") { unsafe { let zeros = zero_vector(); - vget_lane_u8::<1>(1) + vgetq_lane_u8::<1>(zeros) } } else { 0 }; - if cfg!(target feature = "neon") { - assert_eq!(zero, 0) - }; } |
