From 6c19dc9a8662999e28b2084f072532630a4c2fc9 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Tue, 22 Mar 2022 18:11:21 -0700 Subject: [PATCH] Fixup aarch64 smoke test --- src/test/ui/target-feature/aarch64-neon-works.rs | 9 ++++----- 1 file 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) - }; }