[llvm-commits] [llvm] r146689 - in /llvm/trunk: lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/2011-12-08-AVXISelBugs.ll

Chad Rosier mcrosier at apple.com
Thu Dec 15 14:19:07 PST 2011


AVX experts, please  double check this if you have a second.

 Chad

On Dec 15, 2011, at 2:11 PM, Chad Rosier wrote:

> Author: mcrosier
> Date: Thu Dec 15 16:11:31 2011
> New Revision: 146689
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=146689&view=rev
> Log:
> Add missing zmovl AVX patterns which were causing crashes.
> Patch by Elena Demikhovsky <elena.demikhovsky at intel.com>!
> 
> Modified:
>    llvm/trunk/lib/Target/X86/X86InstrSSE.td
>    llvm/trunk/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll
> 
> Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=146689&r1=146688&r2=146689&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
> +++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Thu Dec 15 16:11:31 2011
> @@ -618,6 +618,9 @@
>             (SUBREG_TO_REG (i64 0),
>                            (v2f64 (VMOVSDrr (v2f64 (V_SET0)), FR64:$src)),
>                            sub_xmm)>;
> +  def : Pat<(v4i64 (X86vzmovl (insert_subvector undef,
> +                   (v2i64 (scalar_to_vector (loadi64 addr:$src))), (i32 0)))),
> +            (SUBREG_TO_REG (i64 0), (VMOVSDrm addr:$src), sub_sd)>;
> 
>   // Move low f64 and clear high bits.
>   def : Pat<(v4f64 (X86vzmovl (v4f64 VR256:$src))),
> @@ -800,6 +803,9 @@
> def : Pat<(v8i32 (X86vzmovl
>                         (insert_subvector undef, (v4i32 VR128:$src), (i32 0)))),
>           (SUBREG_TO_REG (i32 0), (VMOVAPSrr VR128:$src), sub_xmm)>;
> +def : Pat<(v4i64 (X86vzmovl
> +                        (insert_subvector undef, (v2i64 VR128:$src), (i32 0)))),
> +          (SUBREG_TO_REG (i32 0), (VMOVAPSrr VR128:$src), sub_xmm)>;
> def : Pat<(v8f32 (X86vzmovl
>                         (insert_subvector undef, (v4f32 VR128:$src), (i32 0)))),
>           (SUBREG_TO_REG (i32 0), (VMOVAPSrr VR128:$src), sub_xmm)>;
> 
> Modified: llvm/trunk/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll?rev=146689&r1=146688&r2=146689&view=diff
> ==============================================================================
> --- llvm/trunk/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll (original)
> +++ llvm/trunk/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll Thu Dec 15 16:11:31 2011
> @@ -61,3 +61,11 @@
> return:                                           ; preds = %loop.cond
>   ret void
> }
> +
> +define <3 x i64> @t4() nounwind {
> +entry:
> +  %0 = load <2 x i64> addrspace(1)* undef, align 16
> +  %1 = extractelement <2 x i64> %0, i32 0
> +  %2 = insertelement <3 x i64> <i64 undef, i64 0, i64 0>, i64 %1, i32 0
> +  ret <3 x i64> %2
> +}
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list