Skip to content

Commit 8c19290

Browse files
feat: casting the results of the lane function by preserving the bits
instead of letting C++ do it (and potentially change the bits)
1 parent 9dbc078 commit 8c19290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/intrinsic-test/src/x86/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl IntrinsicTypeDefinition for X86IntrinsicType {
201201
(0..self.num_lanes())
202202
.map(|idx| -> std::string::String {
203203
format!(
204-
"{cast}{lane_fn}(__return_value, {lane})",
204+
"cast<{cast}>({lane_fn}(__return_value, {lane}))",
205205
cast = self.c_promotion(),
206206
lane_fn = self.get_lane_function(),
207207
lane = idx

0 commit comments

Comments
 (0)