Implement __builtin_ia32_mulps.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44745 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGBuiltin.cpp b/CodeGen/CGBuiltin.cpp
index 14e13e6..7f3bd0a 100644
--- a/CodeGen/CGBuiltin.cpp
+++ b/CodeGen/CGBuiltin.cpp
@@ -80,6 +80,15 @@
       return RValue::get(V);
     }
     
+    if (strcmp(TargetPrefix, "x86") == 0) {
+      if (strcmp(BuiltinName, "__builtin_ia32_mulps") == 0) {
+        llvm::Value *V = Builder.CreateMul(EmitScalarExpr(E->getArg(0)),
+                                           EmitScalarExpr(E->getArg(1)),
+                                           "result");
+        return RValue::get(V);
+      }
+    }
+      
     WarnUnsupported(E, "builtin function");
 
     // Unknown builtin, for now just dump it out and return undef.
@@ -179,6 +188,7 @@
     llvm::Value *V = llvm::ConstantFP::get(llvm::Type::DoubleTy, f);
     return RValue::get(V);
   }
+    
   }
   
   return RValue::get(0);