From f8e2cf92216baedebb5a4e3075f4a83e6947b6c8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 9 Aug 2002 23:33:58 +0000 Subject: [PATCH] Add more strength reduction testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3283 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/setcc-strength-reduce.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/Transforms/InstCombine/setcc-strength-reduce.ll b/test/Transforms/InstCombine/setcc-strength-reduce.ll index 1018ca5b6e0..375dac60714 100644 --- a/test/Transforms/InstCombine/setcc-strength-reduce.ll +++ b/test/Transforms/InstCombine/setcc-strength-reduce.ll @@ -22,3 +22,13 @@ bool "test3"(sbyte %A) { %B = setge sbyte %A, -127 ; setne %A, -128 ret bool %B } + +bool %test4(sbyte %A) { + %B = setle sbyte %A, 126 ; setne %A, 127 + ret bool %B +} + +bool %test5(sbyte %A) { + %B = setlt sbyte %A, 127 ; setne %A, 127 + ret bool %B +}