]> granicus.if.org Git - clang/commitdiff
Allow codegen of vector fdiv
authorNate Begeman <natebegeman@mac.com>
Sun, 30 Dec 2007 01:28:16 +0000 (01:28 +0000)
committerNate Begeman <natebegeman@mac.com>
Sun, 30 Dec 2007 01:28:16 +0000 (01:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45440 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGExprScalar.cpp

index 4ffe6c55759adca7ccf73d357db0f30ac82d7e31..8d5f8143c993cc85efad3458b5689b8beb43a3da 100644 (file)
@@ -682,7 +682,7 @@ Value *ScalarExprEmitter::EmitCompoundAssign(const CompoundAssignOperator *E,
 
 
 Value *ScalarExprEmitter::EmitDiv(const BinOpInfo &Ops) {
-  if (Ops.LHS->getType()->isFloatingPoint())
+  if (Ops.LHS->getType()->isFPOrFPVector())
     return Builder.CreateFDiv(Ops.LHS, Ops.RHS, "div");
   else if (Ops.Ty->isUnsignedIntegerType())
     return Builder.CreateUDiv(Ops.LHS, Ops.RHS, "div");