Skip to content

Commit bc4df4c

Browse files
committed
Auto merge of #27907 - huonw:simd, r=alexcrichton
The definitions of the rsqrte and recpe had typos, and vqtbl1q is useful for a benchmark (fannkuch-redux).
2 parents 5e5b99f + f578735 commit bc4df4c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/librustc_platform_intrinsics/aarch64.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,19 @@ pub fn find<'tcx>(_tcx: &ty::ctxt<'tcx>, name: &str) -> Option<Intrinsic> {
3636
"vsqrtq_f32" => plain!("llvm.sqrt.v4f32", (f32x4) -> f32x4),
3737
"vsqrtq_f64" => plain!("llvm.sqrt.v2f64", (f64x2) -> f64x2),
3838

39-
"vrsqrteq_f32" => p!("vrsqrte.v4f32", (f32x4) -> f32x4),
40-
"vrsqrteq_f64" => p!("vrsqrte.v2f64", (f64x2) -> f64x2),
41-
"vrecpeq_f32" => p!("vrecpe.v4f32", (f32x4) -> f32x4),
42-
"vrecpeq_f64" => p!("vrecpe.v2f64", (f64x2) -> f64x2),
39+
"vrsqrteq_f32" => p!("frsqrte.v4f32", (f32x4) -> f32x4),
40+
"vrsqrteq_f64" => p!("frsqrte.v2f64", (f64x2) -> f64x2),
41+
"vrecpeq_f32" => p!("frecpe.v4f32", (f32x4) -> f32x4),
42+
"vrecpeq_f64" => p!("frecpe.v2f64", (f64x2) -> f64x2),
4343

4444
"vmaxq_f32" => p!("fmax.v4f32", (f32x4, f32x4) -> f32x4),
4545
"vmaxq_f64" => p!("fmax.v2f64", (f64x2, f64x2) -> f64x2),
4646

4747
"vminq_f32" => p!("fmin.v4f32", (f32x4, f32x4) -> f32x4),
4848
"vminq_f64" => p!("fmin.v2f64", (f64x2, f64x2) -> f64x2),
49+
50+
"vqtbl1q_u8" => p!("tbl1.v16i8", (i8x16, i8x16) -> i8x16),
51+
"vqtbl1q_s8" => p!("tbl1.v16i8", (i8x16, i8x16) -> i8x16),
4952
_ => return None,
5053
})
5154
}

0 commit comments

Comments
 (0)