GlobalISel: Fix incorrect lowering G_FCOPYSIGN
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 11 Apr 2020 00:44:45 +0000 (20:44 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Sat, 11 Apr 2020 01:00:25 +0000 (21:00 -0400)
commit49ae0fc2f085eec6606aa6816da0bf09fc5bc77f
treeeaa2ea527695937f5b26a766cbc6f09b100e347e
parent6e7eeb44b305391f736437d050729b09c02fda0f
GlobalISel: Fix incorrect lowering G_FCOPYSIGN

In the basic case, this was reading the sign from the wrong operand.
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fcopysign.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-frint.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-intrinsic-round.mir