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)
commite999b865dd0edf005973fa01c82427563fcb4989
treecc31c14a8bd4f1825a4059274d2a48483710cdee
parent71bf2995813ebde1127e7c4de2787038a82d0861
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.

llvm-svn: 165631
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h
llvm/lib/Target/X86/X86InstrFragmentsSIMD.td
llvm/lib/Target/X86/X86InstrSSE.td
llvm/test/CodeGen/X86/fp-load-trunc.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/fp-trunc.ll