diff --git a/test/Transforms/SCCP/select.ll b/test/Transforms/SCCP/select.ll new file mode 100644 index 00000000000..6b5446805e1 --- /dev/null +++ b/test/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 +}