[llvm-commits] [llvm] r142172 - /llvm/trunk/test/CodeGen/PowerPC/can-lower-ret.ll

Hal Finkel hfinkel at anl.gov
Mon Oct 17 09:12:25 PDT 2011


This test case actually goes with a commit which is in the 3.0 branch
(it should have been included in the original commit, but I omitted it
accidentally). Do you want to pull this commit into the 3.0 branch as
well?

Thanks again,
Hal

On Mon, 2011-10-17 at 04:03 +0000, Hal Finkel wrote:
> Author: hfinkel
> Date: Sun Oct 16 23:03:59 2011
> New Revision: 142172
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=142172&view=rev
> Log:
> Test case for CanLowerReturn fix (r141981)
> 
> Added:
>     llvm/trunk/test/CodeGen/PowerPC/can-lower-ret.ll
> 
> Added: llvm/trunk/test/CodeGen/PowerPC/can-lower-ret.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/can-lower-ret.ll?rev=142172&view=auto
> ==============================================================================
> --- llvm/trunk/test/CodeGen/PowerPC/can-lower-ret.ll (added)
> +++ llvm/trunk/test/CodeGen/PowerPC/can-lower-ret.ll Sun Oct 16 23:03:59 2011
> @@ -0,0 +1,19 @@
> +; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc
> +; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=ppc64
> +
> +define <4 x float> @foo1(<2 x float> %a, <2 x float> %b) nounwind readnone {
> +entry:
> +  %0 = shufflevector <2 x float> %a, <2 x float> undef, <4 x i32> <i32 0, i32 undef, i32 1, i32 undef>
> +  %1 = shufflevector <2 x float> %b, <2 x float> undef, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
> +  %2 = shufflevector <4 x float> %0, <4 x float> %1, <4 x i32> <i32 0, i32 4, i32 2, i32 5>
> +  ret <4 x float> %2
> +}
> +
> +define <4 x double> @foo2(<2 x double> %a, <2 x double> %b) nounwind readnone {
> +entry:
> +  %0 = shufflevector <2 x double> %a, <2 x double> undef, <4 x i32> <i32 0, i32 undef, i32 1, i32 undef>
> +  %1 = shufflevector <2 x double> %b, <2 x double> undef, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
> +  %2 = shufflevector <4 x double> %0, <4 x double> %1, <4 x i32> <i32 0, i32 4, i32 2, i32 5>
> +  ret <4 x double> %2
> +}
> +
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
1-630-252-0023
hfinkel at anl.gov




More information about the llvm-commits mailing list