From db4fbdd1a69f95c089e1135cf5c31a9631e9ac8e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Sep 2006 06:16:46 +0000 Subject: [PATCH] new testcases llvm-svn: 30480 --- .../Regression/Transforms/InstCombine/select.ll | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/llvm/test/Regression/Transforms/InstCombine/select.ll b/llvm/test/Regression/Transforms/InstCombine/select.ll index 526a1bcefd8e..a738f7442352 100644 --- a/llvm/test/Regression/Transforms/InstCombine/select.ll +++ b/llvm/test/Regression/Transforms/InstCombine/select.ll @@ -1,5 +1,4 @@ ; This test makes sure that these instructions are properly eliminated. -; ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select @@ -154,3 +153,17 @@ int %test18(int %X, int %Y, bool %C) { %V = div int %Y, %R ; div Y,X ret int %V } + +int %test19(uint %x) { +entry: + %tmp = setgt uint %x, 2147483647 + %retval = select bool %tmp, int -1, int 0 + ret int %retval +} + +int %test20(int %x) { + %tmp = setlt int %x, 0 + %retval = select bool %tmp, int -1, int 0 + ret int %retval +} +