[llvm-commits] CVS: llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll
Chris Lattner
sabre at nondot.org
Fri Dec 1 11:50:18 PST 2006
Changes in directory llvm/test/Regression/Transforms/ConstProp:
2006-12-01-bool-casts.ll added (r1.1)
---
Log message:
test1 is miscompiled
---
Diffs of the changes: (+13 -0)
2006-12-01-bool-casts.ll | 13 +++++++++++++
1 files changed, 13 insertions(+)
Index: llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll
diff -c /dev/null llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll:1.1
*** /dev/null Fri Dec 1 13:50:14 2006
--- llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll Fri Dec 1 13:50:04 2006
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 'ret int -1' &&
+ ; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 'ret uint 1'
+
+ int %test1() {
+ %A = sext bool true to int
+ ret int %A
+ }
+
+ uint %test2() {
+ %A = zext bool true to uint
+ ret uint %A
+ }
+
More information about the llvm-commits
mailing list