[llvm-commits] [llvm] r76840 - /llvm/trunk/test/CodeGen/X86/vec_insert-4.ll

Chris Lattner clattner at apple.com
Wed Jul 22 21:24:51 PDT 2009


On Jul 22, 2009, at 6:58 PM, Eric Christopher wrote:

> Author: echristo
> Date: Wed Jul 22 20:58:04 2009
> New Revision: 76840
>
> URL: http://llvm.org/viewvc/llvm-project?rev=76840&view=rev
> Log:
> Add test for pinsrd and pinsrb instructions.

Nice.  One small request: please write new tests in FileCheck format.   
This reduces the amount of fork/exec'ing in the testsuite and makes  
the tests more precise.  A lot of tests are using the 'old style', I  
imagine you followed their lead.  I'll convert this test for you as an  
example.

-Chris

>
> Added:
>    llvm/trunk/test/CodeGen/X86/vec_insert-4.ll
>
> Added: llvm/trunk/test/CodeGen/X86/vec_insert-4.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_insert-4.ll?rev=76840&view=auto
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- llvm/trunk/test/CodeGen/X86/vec_insert-4.ll (added)
> +++ llvm/trunk/test/CodeGen/X86/vec_insert-4.ll Wed Jul 22 20:58:04  
> 2009
> @@ -0,0 +1,12 @@
> +; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep pinsrd |  
> count 1
> +; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep pinsrb |  
> count 1
> +
> +define <4 x i32> @t1(i32 %s, <4 x i32> %tmp) nounwind {
> +        %tmp1 = insertelement <4 x i32> %tmp, i32 %s, i32 1
> +        ret <4 x i32> %tmp1
> +}
> +
> +define <16 x i8> @t2(i8 %s, <16 x i8> %tmp) nounwind {
> +        %tmp1 = insertelement <16 x i8> %tmp, i8 %s, i32 1
> +        ret <16 x i8> %tmp1
> +}
>
>
> _______________________________________________
> 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