[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrSSE.td

Chris Lattner sabre at nondot.org
Sat Oct 7 13:24:12 CDT 2006



Changes in directory llvm/lib/Target/X86:

X86InstrSSE.td updated: 1.149 -> 1.150
---
Log message:

Fix typo in packsswb instr definition, where the load had the wrong type.
This allows us to use the multiclass for other packs.


---
Diffs of the changes:  (+1 -15)

 X86InstrSSE.td |   16 +---------------
 1 files changed, 1 insertion(+), 15 deletions(-)


Index: llvm/lib/Target/X86/X86InstrSSE.td
diff -u llvm/lib/Target/X86/X86InstrSSE.td:1.149 llvm/lib/Target/X86/X86InstrSSE.td:1.150
--- llvm/lib/Target/X86/X86InstrSSE.td:1.149	Sat Oct  7 02:49:33 2006
+++ llvm/lib/Target/X86/X86InstrSSE.td	Sat Oct  7 13:23:58 2006
@@ -1585,23 +1585,9 @@
 defm PCMPGTD : PDI_binop_rm<0x66, "pcmpgtd", int_x86_sse2_pcmpgt_d>;
 
 // Pack instructions
-let isTwoAddress = 1 in {
-def PACKSSWBrr : PDI<0x63, MRMSrcReg, (ops VR128:$dst, VR128:$src1,
-                                       VR128:$src2),
-                 "packsswb {$src2, $dst|$dst, $src2}",
-                 [(set VR128:$dst, (v8i16 (int_x86_sse2_packsswb_128
-                                           VR128:$src1,
-                                           VR128:$src2)))]>;
-def PACKSSWBrm : PDI<0x63, MRMSrcMem, (ops VR128:$dst, VR128:$src1,
-                                       i128mem:$src2),
-                 "packsswb {$src2, $dst|$dst, $src2}",
-                 [(set VR128:$dst, (v8i16 (int_x86_sse2_packsswb_128
-                                           VR128:$src1,
-                                       (bitconvert (loadv2f64 addr:$src2)))))]>;
-                                       
+defm PACKSSWB : PDI_binop_rm<0x63, "packsswb", int_x86_sse2_packsswb_128>;
 defm PACKSSDW : PDI_binop_rm<0x6B, "packssdw", int_x86_sse2_packssdw_128>;
 defm PACKUSWB : PDI_binop_rm<0x67, "packuswb", int_x86_sse2_packuswb_128>;
-}
 
 // Shuffle and unpack instructions
 def PSHUFDri : PDIi8<0x70, MRMSrcReg,






More information about the llvm-commits mailing list