We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa4ae8 commit 6c19dc9Copy full SHA for 6c19dc9
src/test/ui/target-feature/aarch64-neon-works.rs
@@ -1,20 +1,19 @@
1
// only-aarch64
2
// run-pass
3
+#![allow(dead_code)]
4
+use std::arch::*;
5
use std::arch::aarch64::*;
6
7
// Smoke test to verify aarch64 code that enables NEON compiles.
8
fn main() {
- let zero = if is_aarch64_feature_detected!("neon") {
9
+ let _zero = if is_aarch64_feature_detected!("neon") {
10
unsafe {
11
let zeros = zero_vector();
- vget_lane_u8::<1>(1)
12
+ vgetq_lane_u8::<1>(zeros)
13
}
14
} else {
15
0
16
};
- if cfg!(target feature = "neon") {
- assert_eq!(zero, 0)
17
- };
18
19
20
0 commit comments