[cfe-commits] r53747 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Mon P Wang wangmp at apple.com
Thu Jul 17 17:14:10 PDT 2008


Author: wangmp
Date: Thu Jul 17 19:14:09 2008
New Revision: 53747

URL: http://llvm.org/viewvc/llvm-project?rev=53747&view=rev
Log:
Add support shufpd

Modified:
    cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=53747&r1=53746&r2=53747&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Thu Jul 17 19:14:09 2008
@@ -767,6 +767,10 @@
                              ((i & 0x30) >> 4) + 4, 
                              ((i & 0xc0) >> 6) + 4, "shufps");
   }
+  case X86::BI__builtin_ia32_shufpd: {
+    unsigned i = cast<ConstantInt>(Ops[2])->getZExtValue();
+    return EmitShuffleVector(Ops[0], Ops[1], i & 1, (i & 2) + 2, "shufpd");
+  }
   case X86::BI__builtin_ia32_punpcklbw128:
     return EmitShuffleVector(Ops[0], Ops[1], 0, 16, 1, 17, 2, 18, 3, 19,
                                              4, 20, 5, 21, 6, 22, 7, 23,





More information about the cfe-commits mailing list