We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717a3ad commit 88921acCopy full SHA for 88921ac
crates/intrinsic-test/src/x86/types.rs
@@ -203,7 +203,7 @@ impl IntrinsicTypeDefinition for X86IntrinsicType {
203
let cast_type = self.c_promotion();
204
let lane_fn = self.get_lane_function();
205
if cast_type.len() > 2 {
206
- format!("({cast_type})({lane_fn}(__return_value, {idx}))")
+ format!("cast<{cast_type}>({lane_fn}(__return_value, {idx}))")
207
} else {
208
format!("{lane_fn}(__return_value, {idx})")
209
}
@@ -227,7 +227,7 @@ impl IntrinsicTypeDefinition for X86IntrinsicType {
227
),
228
_ => self.c_scalar_type(),
229
},
230
- promote = self.c_promotion(),
+ promote = self.generate_final_type_cast(),
231
)
232
};
233
0 commit comments