[llvm-commits] CVS: llvm/test/Transforms/InstCombine/bswap-fold.ll

Chris Lattner clattner at apple.com
Sun Apr 1 13:52:05 PDT 2007


This is being run through llvm-upgrade: llvm-upgrade should upgrade  
it, so this should be reverted.

-Chris

On Apr 1, 2007, at 12:36 AM, Reid Spencer wrote:

>
>
> Changes in directory llvm/test/Transforms/InstCombine:
>
> bswap-fold.ll updated: 1.2 -> 1.3
> ---
> Log message:
>
> For PR1297: http://llvm.org/PR1297 :
> Update these test cases to use proper signatures for bswap which is  
> now
> and overloaded intrinsic. Its name must be of the form  
> llvm.bswap.i32.i32
> since both the parameter and the result or of type "iAny". Also, the
> bit counting intrinsics changed to always return i32.
>
>
> ---
> Diffs of the changes:  (+7 -7)
>
>  bswap-fold.ll |   14 +++++++-------
>  1 files changed, 7 insertions(+), 7 deletions(-)
>
>
> Index: llvm/test/Transforms/InstCombine/bswap-fold.ll
> diff -u llvm/test/Transforms/InstCombine/bswap-fold.ll:1.2 llvm/ 
> test/Transforms/InstCombine/bswap-fold.ll:1.3
> --- llvm/test/Transforms/InstCombine/bswap-fold.ll:1.2	Fri Dec  1  
> 22:23:09 2006
> +++ llvm/test/Transforms/InstCombine/bswap-fold.ll	Sun Apr  1  
> 02:36:28 2007
> @@ -2,25 +2,25 @@
>  ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis |  
> not grep 'call.*bswap'
>
>  bool %test1(ushort %tmp2) {
> -	%tmp10 = call ushort %llvm.bswap.i16( ushort %tmp2 )		
> +	%tmp10 = call ushort %llvm.bswap.i16.i16( ushort %tmp2 )		
>  	%tmp = seteq ushort %tmp10, 1		
>  	ret bool %tmp
>  }
>
>  bool %test2(uint %tmp) {
> -	%tmp34 = tail call uint %llvm.bswap.i32( uint %tmp )		
> +	%tmp34 = tail call uint %llvm.bswap.i32.i32( uint %tmp )		
>  	%tmp = seteq uint %tmp34, 1		
>  	ret bool %tmp
>  }
>
> -declare uint %llvm.bswap.i32(uint)
> -
>  bool %test3(ulong %tmp) {
> -	%tmp34 = tail call ulong %llvm.bswap.i64( ulong %tmp )		
> +	%tmp34 = tail call ulong %llvm.bswap.i64.i64( ulong %tmp )		
>  	%tmp = seteq ulong %tmp34, 1		
>  	ret bool %tmp
>  }
>
> -declare ulong %llvm.bswap.i64(ulong)
> +declare ulong %llvm.bswap.i64.i64(ulong)
> +
> +declare ushort %llvm.bswap.i16.i16(ushort)
>
> -declare ushort %llvm.bswap.i16(ushort)
> +declare uint %llvm.bswap.i32.i32(uint)
>
>
>
> _______________________________________________
> 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