From 0f370256ad1bc9fe58692db2d5e9cd8fb7696e79 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 8 Feb 2006 02:37:40 +0000 Subject: [PATCH] new testcase for more interesting select sccp cases llvm-svn: 26048 --- test/Regression/Transforms/SCCP/select.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Regression/Transforms/SCCP/select.ll diff --git a/test/Regression/Transforms/SCCP/select.ll b/test/Regression/Transforms/SCCP/select.ll new file mode 100644 index 00000000000..6b5446805e1 --- /dev/null +++ b/test/Regression/Transforms/SCCP/select.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -sccp -disable-output && +; RUN: llvm-as < %s | opt -sccp | llvm-dis | not grep select + +int %test1(bool %C) { + %X = select bool %C, int 0, int 0 + ret int %X +} + +int %test2(bool %C) { + %X = select bool %C, int 0, int undef + ret int %X +}