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

Andrew Lenharth andrewl at lenharth.org
Thu Feb 22 08:28:54 PST 2007


I won't get a chance to fix this before the nightly testers start.  Should I
x-fail this until it is handled?

Andrew

On 2/22/07, Andrew Lenharth <alenhar2 at cs.uiuc.edu> wrote:
>
>
>
> Changes in directory llvm/test/Transforms/InstCombine:
>
> cast_ptr.ll updated: 1.3 -> 1.4
> ---
> Log message:
>
> missed cast elimination
>
> ---
> Diffs of the changes:  (+7 -1)
>
> cast_ptr.ll |    8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletion(-)
>
>
> Index: llvm/test/Transforms/InstCombine/cast_ptr.ll
> diff -u llvm/test/Transforms/InstCombine/cast_ptr.ll:1.3llvm/test/Transforms/InstCombine/cast_ptr.ll:
> 1.4
> --- llvm/test/Transforms/InstCombine/cast_ptr.ll:1.3    Fri Dec  1
> 22:23:09 2006
> +++ llvm/test/Transforms/InstCombine/cast_ptr.ll        Thu Feb 22
> 09:17:45 2007
> @@ -1,6 +1,6 @@
> ; Tests to make sure elimination of casts is working correctly
> ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
> -; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not
> grep '\([sz]ext\)\|\(trunc\)'
> +; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not
> grep '\([sz]ext\)\|\(trunc\)|\(ptrtoint\)'
>
> target pointersize = 32
>
> @@ -13,3 +13,9 @@
>         ret sbyte* %tv
> }
>
> +bool %test2(sbyte* %a, sbyte* %b) {
> +%tmpa = cast sbyte* %a to uint
> +%tmpb = cast sbyte* %b to uint
> +%r = seteq uint %tmpa, %tmpb
> +ret bool %r
> +}
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070222/20d14dbe/attachment.html>


More information about the llvm-commits mailing list