From 91dedad737adcd2000a1cac5df20e152f6f18158 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Feb 2006 02:36:19 +0000 Subject: [PATCH] new testcases llvm-svn: 26395 --- test/Regression/Transforms/InstCombine/set.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/Regression/Transforms/InstCombine/set.ll b/test/Regression/Transforms/InstCombine/set.ll index 1e07083e507..756ade49521 100644 --- a/test/Regression/Transforms/InstCombine/set.ll +++ b/test/Regression/Transforms/InstCombine/set.ll @@ -129,3 +129,19 @@ bool %test22(uint %A, int %X) { %R = or bool %C, %Z ret bool %R } + +int %test23(int %a) { + %tmp.1 = and int %a, 1 + %tmp.2 = seteq int %tmp.1, 0 + %tmp.3 = cast bool %tmp.2 to int ;; xor tmp1, 1 + ret int %tmp.3 +} + +int %test24(uint %a) { + %tmp1 = and uint %a, 4 + %tmp.1 = shr uint %tmp1, ubyte 2 + %tmp.2 = seteq uint %tmp.1, 0 + %tmp.3 = cast bool %tmp.2 to int ;; xor tmp1, 1 + ret int %tmp.3 +} +