Lower packed integer add instructions (v128)

Adds lowering support for packed integer add instructions and helper
function for determining if a type for an instruction indicates it is
packed.
This commit is contained in:
Johnnie Birch
2020-08-05 13:18:12 -07:00
parent 2eadc6e2a8
commit dd6ba5f9d7
2 changed files with 37 additions and 28 deletions

View File

@@ -1662,7 +1662,7 @@ pub(crate) fn emit(
SseOpcode::Paddb => (LegacyPrefix::_66, 0x0FFC),
SseOpcode::Paddd => (LegacyPrefix::_66, 0x0FFE),
SseOpcode::Paddq => (LegacyPrefix::_66, 0x0FD4),
SSeOpcode::Paddw => (LegacyPrefix::_66, 0x0FFD),
SseOpcode::Paddw => (LegacyPrefix::_66, 0x0FFD),
SseOpcode::Subps => (LegacyPrefix::None, 0x0F5C),
SseOpcode::Subpd => (LegacyPrefix::_66, 0x0F5C),
SseOpcode::Subss => (LegacyPrefix::_F3, 0x0F5C),