Skip to content

Commit 9eb3150

Browse files
committed
Properly fix vext intrinsic tests
This was previously done as part of #1326, but it modified generated code without fixing the root issue in neon.spec.
1 parent 152c2d0 commit 9eb3150

File tree

4 files changed

+152
-117
lines changed

4 files changed

+152
-117
lines changed

crates/core_arch/src/aarch64/neon/generated.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -20129,18 +20129,18 @@ mod test {
2012920129

2013020130
#[simd_test(enable = "neon")]
2013120131
unsafe fn test_vextq_p64() {
20132-
let a: i64x2 = i64x2::new(0, 8);
20133-
let b: i64x2 = i64x2::new(9, 11);
20134-
let e: i64x2 = i64x2::new(8, 9);
20132+
let a: i64x2 = i64x2::new(1, 1);
20133+
let b: i64x2 = i64x2::new(2, 2);
20134+
let e: i64x2 = i64x2::new(1, 2);
2013520135
let r: i64x2 = transmute(vextq_p64::<1>(transmute(a), transmute(b)));
2013620136
assert_eq!(r, e);
2013720137
}
2013820138

2013920139
#[simd_test(enable = "neon")]
2014020140
unsafe fn test_vextq_f64() {
20141-
let a: f64x2 = f64x2::new(0., 2.);
20142-
let b: f64x2 = f64x2::new(3., 4.);
20143-
let e: f64x2 = f64x2::new(2., 3.);
20141+
let a: f64x2 = f64x2::new(1., 1.);
20142+
let b: f64x2 = f64x2::new(2., 2.);
20143+
let e: f64x2 = f64x2::new(1., 2.);
2014420144
let r: f64x2 = transmute(vextq_f64::<1>(transmute(a), transmute(b)));
2014520145
assert_eq!(r, e);
2014620146
}

0 commit comments

Comments
 (0)