Test seteq AND setne
authorChris Lattner <sabre@nondot.org>
Thu, 5 Jun 2003 20:11:19 +0000 (20:11 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Jun 2003 20:11:19 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6628 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/set.ll

index b0e9fa48a4874a7445e49a974b41458179c0d2cf..f97a2b6198d5e6632caf9c70712076b5625275af 100644 (file)
@@ -81,9 +81,9 @@ bool %test14(bool %A, bool %B) {
 ; These instructions can be turned into cast-to-bool
 bool %test15(sbyte %A, short %A, int %A, long %A) {
        %B1 = setne sbyte %A, 0
-       %B2 = setne short %A, 0
+       %B2 = seteq short %A, 0
        %B3 = setne int %A, 0
-       %B4 = setne long %A, 0
+       %B4 = seteq long %A, 0
        %C1 = or bool %B1, %B2
        %C2 = or bool %B3, %B4
        %D = or bool %C1, %C2