Add sse41 lowering for rounding x64

This commit is contained in:
Johnnie Birch
2021-01-25 00:02:57 -08:00
parent d1c1cb6a25
commit cbd7a6a80e
3 changed files with 36 additions and 29 deletions

View File

@@ -2094,7 +2094,9 @@ pub(crate) fn emit(
SseOpcode::Pextrd => (LegacyPrefixes::_66, 0x0F3A16, 3),
SseOpcode::Pshufd => (LegacyPrefixes::_66, 0x0F70, 2),
SseOpcode::Roundps => (LegacyPrefixes::_66, 0x0F3A08, 3),
SseOpcode::Roundss => (LegacyPrefixes::_66, 0x0F3A0A, 3),
SseOpcode::Roundpd => (LegacyPrefixes::_66, 0x0F3A09, 3),
SseOpcode::Roundsd => (LegacyPrefixes::_66, 0x0F3A0B, 3),
_ => unimplemented!("Opcode {:?} not implemented", op),
};
let rex = if *is64 {