Fix a bug introduced by rL334850
authorTomasz Krupa <tomasz.krupa@intel.com>
Mon, 18 Jun 2018 17:57:05 +0000 (17:57 +0000)
committerTomasz Krupa <tomasz.krupa@intel.com>
Mon, 18 Jun 2018 17:57:05 +0000 (17:57 +0000)
commit83ba6fa98dbace52d54fc6ffcf8162f3b477d6e0
tree6d027bec7ae6f4006ebc25231dcef7a856dbcca3
parent546017322f2b21573cad3412e52f1d0a49af714a
Fix a bug introduced by rL334850

Summary: All *_sqrt_round_s[s|d] intrinsics should execute a square root on
zeroth element from B (Ops[1]) and insert in to A (Ops[0]), not the other way around.

Reviewers: itaraban, craig.topper

Reviewed By: craig.topper

Subscribers: craig.topper, cfe-commits

Differential Revision: https://reviews.llvm.org/D48288

llvm-svn: 334964
clang/lib/CodeGen/CGBuiltin.cpp