X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FInstCombine%2F2006-10-19-SignedToUnsignedCastAndConst-2.ll;h=889bbcfa3ea5b562abd22712cc6e4744404fa758;hb=ebb5183a2f16abc7c88241bb42412465f52c2a61;hp=89ec03dbbee8314d9ffebbad6f5a631e7d534351;hpb=eacb7020ec7b0a6a0078f1be7bfd77bf6fe1ff06;p=oota-llvm.git diff --git a/test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll b/test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll index 89ec03dbbee..889bbcfa3ea 100644 --- a/test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll +++ b/test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll @@ -1,9 +1,10 @@ ; The optimizer should be able to remove cast operation here. -; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | not grep 'sext.*i32' +; RUN: opt < %s -instcombine -S | \ +; RUN: not grep sext.*i32 -bool %eq_signed_to_small_unsigned(sbyte %SB) { - %Y = cast sbyte %SB to uint ; [#uses=1] - %C = seteq uint %Y, 17 ; [#uses=1] - ret bool %C - } +define i1 @eq_signed_to_small_unsigned(i8 %SB) { + %Y = sext i8 %SB to i32 ; [#uses=1] + %C = icmp eq i32 %Y, 17 ; [#uses=1] + ret i1 %C +}