File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
rustc_codegen_cranelift/src/intrinsics Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1013,7 +1013,6 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
1013
1013
intrinsic_args ! ( fx, args => ( val, ptr, mask) ; intrinsic) ;
1014
1014
1015
1015
let ( val_lane_count, val_lane_ty) = val. layout ( ) . ty . simd_size_and_type ( fx. tcx ) ;
1016
- // let (ptr, ptr_value) = ptr.try_to_ptr().expect("simd_masked_load ptr");
1017
1016
let ( mask_lane_count, _mask_lane_ty) = mask. layout ( ) . ty . simd_size_and_type ( fx. tcx ) ;
1018
1017
let ( ret_lane_count, ret_lane_ty) = ret. layout ( ) . ty . simd_size_and_type ( fx. tcx ) ;
1019
1018
assert_eq ! ( val_lane_count, mask_lane_count) ;
Original file line number Diff line number Diff line change @@ -1497,6 +1497,9 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
1497
1497
// * N: number of elements in the input vectors
1498
1498
// * T: type of the element to load
1499
1499
// * M: any integer width is supported, will be truncated to i1
1500
+ // Loads contiguous elements from memory behind `pointer`, but only for
1501
+ // those lanes whose `mask` bit is enabled.
1502
+ // The memory addresses corresponding to the “off” lanes are not accessed.
1500
1503
1501
1504
// The first argument is a passthrough vector providing values for disabled lanes
1502
1505
let ( _, element_ty0) = require_simd ! ( in_ty, SimdFirst ) ;
@@ -1592,6 +1595,9 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
1592
1595
// * N: number of elements in the input vectors
1593
1596
// * T: type of the element to load
1594
1597
// * M: any integer width is supported, will be truncated to i1
1598
+ // Stores contiguous elements to memory behind `pointer`, but only for
1599
+ // those lanes whose `mask` bit is enabled.
1600
+ // The memory addresses corresponding to the “off” lanes are not accessed.
1595
1601
1596
1602
// The first argument is a passthrough vector providing values for disabled lanes
1597
1603
let ( element_len1, element_ty0) = require_simd ! ( in_ty, SimdFirst ) ;
You can’t perform that action at this time.
0 commit comments