Allow codegen of vector fdiv

llvm-svn: 45440
This commit is contained in:
Nate Begeman 2007-12-30 01:28:16 +00:00
parent add4b3f9ab
commit 628028bd27
1 changed files with 1 additions and 1 deletions

View 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");