Skip to content

Commit c90d6a0

Browse files
authored
Merge pull request #4206 from RalfJung/rustup
Rustup
2 parents 3d68686 + 5877b6e commit c90d6a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e0be1a02626abef2878cb7f4aaef7ae409477112
1+
f5729cfed3c45e061e8a443677fc1d5ef9277df7

src/intrinsics/simd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
635635
this.write_immediate(*val, &dest)?;
636636
}
637637
}
638-
"shuffle_generic" => {
638+
"shuffle_const_generic" => {
639639
let [left, right] = check_intrinsic_arg_count(args)?;
640640
let (left, left_len) = this.project_to_simd(left)?;
641641
let (right, right_len) = this.project_to_simd(right)?;
@@ -659,7 +659,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
659659
this.read_immediate(&this.project_index(&right, right_idx)?)?
660660
} else {
661661
throw_ub_format!(
662-
"`simd_shuffle_generic` index {src_index} is out-of-bounds for 2 vectors with length {dest_len}"
662+
"`simd_shuffle_const_generic` index {src_index} is out-of-bounds for 2 vectors with length {dest_len}"
663663
);
664664
};
665665
this.write_immediate(*val, &dest)?;

tests/pass/intrinsics/portable-simd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::simd::prelude::*;
1616

1717
#[rustc_intrinsic]
1818
#[rustc_nounwind]
19-
pub unsafe fn simd_shuffle_generic<T, U, const IDX: &'static [u32]>(_x: T, _y: T) -> U;
19+
pub unsafe fn simd_shuffle_const_generic<T, U, const IDX: &'static [u32]>(_x: T, _y: T) -> U;
2020

2121
fn simd_ops_f32() {
2222
let a = f32x4::splat(10.0);
@@ -619,13 +619,13 @@ fn simd_intrinsics() {
619619
simd_select(i8x4::from_array([0, -1, -1, 0]), b, a),
620620
i32x4::from_array([10, 2, 10, 10])
621621
);
622-
assert_eq!(simd_shuffle_generic::<_, i32x4, { &[3, 1, 0, 2] }>(a, b), a,);
622+
assert_eq!(simd_shuffle_const_generic::<_, i32x4, { &[3, 1, 0, 2] }>(a, b), a,);
623623
assert_eq!(
624624
simd_shuffle::<_, _, i32x4>(a, b, const { u32x4::from_array([3u32, 1, 0, 2]) }),
625625
a,
626626
);
627627
assert_eq!(
628-
simd_shuffle_generic::<_, i32x4, { &[7, 5, 4, 6] }>(a, b),
628+
simd_shuffle_const_generic::<_, i32x4, { &[7, 5, 4, 6] }>(a, b),
629629
i32x4::from_array([4, 2, 1, 10]),
630630
);
631631
assert_eq!(

0 commit comments

Comments
 (0)