Fix bugs in lowering of FCOPYSIGN nodes.
authorAkira Hatanaka <ahatanaka@mips.com>
Wed, 11 Apr 2012 22:13:04 +0000 (22:13 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Wed, 11 Apr 2012 22:13:04 +0000 (22:13 +0000)
commit056c51e59820c4c36d3b9d2f22acb6fd121b798e
tree641ba94fc250beeb15afed2f3250a2de4555789d
parent2ce182c90cd8738bf76e5cdaa21eb6627c6e6aec
Fix bugs in lowering of FCOPYSIGN nodes.

- FCOPYSIGN nodes that have operands of different types were not handled.
- Different code was generated depending on the endianness of the target.

Additionally, code is added that emits INS and EXT instructions, if they are
supported by target (they are R2 instructions).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154540 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsISelLowering.cpp
test/CodeGen/Mips/fcopysign-f32-f64.ll [new file with mode: 0644]
test/CodeGen/Mips/fcopysign.ll