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:
Andrew Brown
2020-05-26 17:13:20 -07:00
parent bbd99c5bfa
commit 3740772176
2 changed files with 12 additions and 0 deletions

View File

@@ -103,6 +103,10 @@ pub static CVTSI2SS: [u8; 3] = [0xf3, 0x0f, 0x2a];
/// float-point value.
pub static CVTSS2SD: [u8; 3] = [0xf3, 0x0f, 0x5a];
/// Convert four packed single-precision floating-point values from xmm2/mem to four packed signed
/// doubleword values in xmm1 using truncation (SSE2).
pub static CVTTPS2DQ: [u8; 3] = [0xf3, 0x0f, 0x5b];
/// Convert with truncation scalar double-precision floating-point value to signed
/// integer.
pub static CVTTSD2SI: [u8; 3] = [0xf2, 0x0f, 0x2c];