[llvm-commits] [llvm] r124601 - /llvm/trunk/lib/Target/CellSPU/SPUInstrInfo.td

David Greene greened at obbligato.org
Mon Jan 31 12:39:01 PST 2011


Author: greened
Date: Mon Jan 31 14:39:01 2011
New Revision: 124601

URL: http://llvm.org/viewvc/llvm-project?rev=124601&view=rev
Log:

Fix vector sign extend to put the source and destination types in the
correct places.

Modified:
    llvm/trunk/lib/Target/CellSPU/SPUInstrInfo.td

Modified: llvm/trunk/lib/Target/CellSPU/SPUInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUInstrInfo.td?rev=124601&r1=124600&r2=124601&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUInstrInfo.td (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUInstrInfo.td Mon Jan 31 14:39:01 2011
@@ -1167,10 +1167,10 @@
              [(set rclass:$rDest, (sext R16C:$rSrc))]>;
 
 multiclass ExtendHalfwordWord {
-  def v4i32: XSHWVecInst<v4i32, v8i16>;
-  
+  def v4i32: XSHWVecInst<v8i16, v4i32>;
+
   def r16:   XSHWRegInst<R32C>;
-  
+
   def r32:   XSHWInRegInst<R32C,
                           [(set R32C:$rDest, (sext_inreg R32C:$rSrc, i16))]>;
   def r64:   XSHWInRegInst<R64C, [/* no pattern */]>;





More information about the llvm-commits mailing list