Add support for FP_ROUND from v2f64 to v2f32
authorMichael Liao <michael.liao@intel.com>
Wed, 10 Oct 2012 16:53:28 +0000 (16:53 +0000)
committerMichael Liao <michael.liao@intel.com>
Wed, 10 Oct 2012 16:53:28 +0000 (16:53 +0000)
commit44c2d61b6703469a95fcd2d5397c5d09a67e75c1
treeded8fbfaa22a59e8aca8944eb2971cd0e0b42565
parent9d796db3e746c31dbdb605510c53b3da98d71b38
Add support for FP_ROUND from v2f64 to v2f32

- Due to the current matching vector elements constraints in
  ISD::FP_ROUND, rounding from v2f64 to v4f32 (after legalization from
  v2f32) is scalarized. Add a customized v2f32 widening to convert it
  into a target-specific X86ISD::VFPROUND to work around this
  constraints.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165631 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/X86/X86InstrFragmentsSIMD.td
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/fp-load-trunc.ll [new file with mode: 0644]
test/CodeGen/X86/fp-trunc.ll