[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/compare-duplicate.ll
Chris Lattner
sabre at nondot.org
Fri May 18 17:41:58 PDT 2007
Changes in directory llvm/test/CodeGen/PowerPC:
compare-duplicate.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+11 -0)
compare-duplicate.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/CodeGen/PowerPC/compare-duplicate.ll
diff -c /dev/null llvm/test/CodeGen/PowerPC/compare-duplicate.ll:1.1
*** /dev/null Fri May 18 19:41:50 2007
--- llvm/test/CodeGen/PowerPC/compare-duplicate.ll Fri May 18 19:41:40 2007
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc | not grep slwi
+
+ define i32 @test(i32 %A, i32 %B) {
+ %C = sub i32 %B, %A
+ %D = icmp eq i32 %C, %A
+ br i1 %D, label %T, label %F
+ T:
+ ret i32 19123
+ F:
+ ret i32 %C
+ }
More information about the llvm-commits
mailing list