Add encoding for x86 CVTTPS2DQ
This reuses the `x86_cvtt2si` instruction since the packed and scalar versions seem to group together well.
This commit is contained in:
@@ -1635,6 +1635,7 @@ fn define_simd(
|
||||
let usub_sat = shared.by_name("usub_sat");
|
||||
let vconst = shared.by_name("vconst");
|
||||
let vselect = shared.by_name("vselect");
|
||||
let x86_cvtt2si = x86.by_name("x86_cvtt2si");
|
||||
let x86_insertps = x86.by_name("x86_insertps");
|
||||
let x86_movlhps = x86.by_name("x86_movlhps");
|
||||
let x86_movsd = x86.by_name("x86_movsd");
|
||||
@@ -1902,6 +1903,13 @@ fn define_simd(
|
||||
rec_evex_reg_rm_128.opcodes(&VCVTUDQ2PS),
|
||||
Some(use_avx512vl_simd), // TODO need an OR predicate to join with AVX512F
|
||||
);
|
||||
|
||||
e.enc_both_inferred(
|
||||
x86_cvtt2si
|
||||
.bind(vector(I32, sse_vector_size))
|
||||
.bind(vector(F32, sse_vector_size)),
|
||||
rec_furm.opcodes(&CVTTPS2DQ),
|
||||
);
|
||||
}
|
||||
|
||||
// SIMD vconst for special cases (all zeroes, all ones)
|
||||
|
||||
Reference in New Issue
Block a user