Commit 0ecabc82 by Matt Wala

Fix floating point vector frem lowering.

The frem operation takes two arguments. Pass both Src0 and Src1 to __frem_v4f32. BUG=none R=stichnot@chromium.org Review URL: https://codereview.chromium.org/387153002
parent 140bb0d8
...@@ -1182,9 +1182,10 @@ void TargetX8632::lowerArithmetic(const InstArithmetic *Inst) { ...@@ -1182,9 +1182,10 @@ void TargetX8632::lowerArithmetic(const InstArithmetic *Inst) {
_movp(Dest, T); _movp(Dest, T);
} break; } break;
case InstArithmetic::Frem: { case InstArithmetic::Frem: {
const SizeT MaxSrcs = 1; const SizeT MaxSrcs = 2;
InstCall *Call = makeHelperCall("__frem_v4f32", Dest, MaxSrcs); InstCall *Call = makeHelperCall("__frem_v4f32", Dest, MaxSrcs);
Call->addArg(Src0); Call->addArg(Src0);
Call->addArg(Src1);
lowerCall(Call); lowerCall(Call);
} break; } break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment