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(
84
84
if ty. is_err ( ) {
85
85
None
86
86
} 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) ;
88
93
let arg = Argument :: < X86IntrinsicType > :: new (
89
94
i,
90
95
param. var_name . clone ( ) ,
@@ -119,12 +124,6 @@ fn xml_to_intrinsic(
119
124
120
125
args. iter_mut ( ) . for_each ( |arg| arg. ty . update_simd_len ( ) ) ;
121
126
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
-
128
127
let arguments = ArgumentList :: < X86IntrinsicType > { args } ;
129
128
130
129
if let Err ( message) = result {
You can’t perform that action at this time.
0 commit comments