[PATCH] D26398: [mips][msa] Implement f16 support

Simon Dardis via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 07:32:00 PST 2016


sdardis created this revision.
sdardis added a reviewer: vkalintiris.
sdardis added a subscriber: llvm-commits.
sdardis set the repository for this revision to rL LLVM.

The MIPS MSA ASE provides instructions to convert to and from half precision
floating point. This patch teaches the MIPS backend to treat f16 as a legal
type and how to promote such values to f32 for the usual set of operations.

As a result of this, the fexup[lr].w intrinsics no longer crash LLVM during
type legalization.


Repository:
  rL LLVM

https://reviews.llvm.org/D26398

Files:
  lib/Target/Mips/MipsMSAInstrInfo.td
  lib/Target/Mips/MipsRegisterInfo.td
  lib/Target/Mips/MipsSEISelLowering.cpp
  lib/Target/Mips/MipsSEISelLowering.h
  test/CodeGen/Mips/msa/f16-llvm-ir.ll
  test/CodeGen/Mips/msa/fexuprl.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26398.77192.patch
Type: text/x-patch
Size: 55285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161108/fa15f12c/attachment.bin>


More information about the llvm-commits mailing list