[llvm-commits] CVS: llvm/test/Regression/Transforms/SCCP/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 7 18:37:53 PST 2006
Changes in directory llvm/test/Regression/Transforms/SCCP:
select.ll added (r1.1)
---
Log message:
new testcase for more interesting select sccp cases
---
Diffs of the changes: (+12 -0)
select.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/Transforms/SCCP/select.ll
diff -c /dev/null llvm/test/Regression/Transforms/SCCP/select.ll:1.1
*** /dev/null Tue Feb 7 20:37:50 2006
--- llvm/test/Regression/Transforms/SCCP/select.ll Tue Feb 7 20:37:40 2006
***************
*** 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
+ }
More information about the llvm-commits
mailing list