File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
crates/intrinsic-test/src/x86 Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,12 @@ fn xml_to_intrinsic(
8484 if ty. is_err ( ) {
8585 None
8686 } else {
87- let constraint = map_constraints ( & param. imm_type , param. imm_width ) ;
87+ let effective_imm_width = if name == "_mm_mpsadbw_epu8" && param. var_name == "imm8" {
88+ 3
89+ } else {
90+ param. imm_width
91+ } ;
92+ let constraint = map_constraints ( & param. imm_type , effective_imm_width) ;
8893 let arg = Argument :: < X86IntrinsicType > :: new (
8994 i,
9095 param. var_name . clone ( ) ,
@@ -119,12 +124,6 @@ fn xml_to_intrinsic(
119124
120125 args. iter_mut ( ) . for_each ( |arg| arg. ty . update_simd_len ( ) ) ;
121126
122- if name == "_mm_mpsadbw_epu8" {
123- args. iter_mut ( )
124- . filter ( |arg| arg. name . contains ( "imm8" ) )
125- . for_each ( |arg| arg. ty . bit_len = Some ( 3 ) ) ;
126- }
127-
128127 let arguments = ArgumentList :: < X86IntrinsicType > { args } ;
129128
130129 if let Err ( message) = result {
You can’t perform that action at this time.
0 commit comments