[PATCH] D54663: [PowerPC] Complete the custom legalization of vector int to fp conversion

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 16 21:51:23 PST 2018


nemanjai created this revision.
nemanjai added reviewers: hfinkel, RolandF, jsji, lei, stefanp, syzaara.
Herald added a subscriber: kbarton.

A recent patch has added custom legalization of vector conversions of `v2i16` -> `v2f64`. This just rounds it out for other types where the input vector has an illegal (narrower) type than the result vector. Specifically, this will handle the following conversions:

  v2i8 -> v2f64
  v2i32 -> v2f64
  v4i8 -> v4f32
  v4i16 -> v4f32


Repository:
  rL LLVM

https://reviews.llvm.org/D54663

Files:
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/PowerPC/PPCInstrVSX.td
  test/CodeGen/PowerPC/vec_conv_i16_to_fp32_elts.ll
  test/CodeGen/PowerPC/vec_conv_i16_to_fp64_elts.ll
  test/CodeGen/PowerPC/vec_conv_i32_to_fp64_elts.ll
  test/CodeGen/PowerPC/vec_conv_i64_to_fp32_elts.ll
  test/CodeGen/PowerPC/vec_conv_i8_to_fp32_elts.ll
  test/CodeGen/PowerPC/vec_conv_i8_to_fp64_elts.ll
  test/CodeGen/PowerPC/vsx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54663.174496.patch
Type: text/x-patch
Size: 284076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181117/0f92a5f5/attachment-0001.bin>


More information about the llvm-commits mailing list