[MIPS] OperationAction for FP_TO_FP16, FP16_TO_FP
authorPirama Arumuga Nainar <pirama@google.com>
Mon, 20 Apr 2015 20:15:36 +0000 (20:15 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Mon, 20 Apr 2015 20:15:36 +0000 (20:15 +0000)
commit9d1b182f81ace33ef41120726501de04aada023a
treee5d61accddd915d5f89b24cf5bcce8c767f3e711
parent4eccd9814fbb8303d5d2817843a2d7038d5f1167
[MIPS] OperationAction for FP_TO_FP16, FP16_TO_FP

Summary:
Set operation action for FP16 conversion opcodes, so the Op legalizer
can choose the gnu_* libcalls for Mips.

Set LoadExtAction and TruncStoreAction for f16 scalars and vectors to
prevent (fpext (load )) and (store (fptrunc)) from getting combined into
unsupported operations.

Added test cases to test that these operations are handled correctly
for f16 scalars and vectors.  This patch depends on
http://reviews.llvm.org/D8755.

Reviewers: srhines

Subscribers: llvm-commits, ab

Differential Revision: http://reviews.llvm.org/D8804

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