[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/long-compare.ll

Chris Lattner sabre at nondot.org
Thu Feb 8 20:50:02 PST 2007



Changes in directory llvm/test/CodeGen/PowerPC:

long-compare.ll added (r1.1)
---
Log message:

Add ppc-specific test for better i64 compare codegen.


---
Diffs of the changes:  (+9 -0)

 long-compare.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/CodeGen/PowerPC/long-compare.ll
diff -c /dev/null llvm/test/CodeGen/PowerPC/long-compare.ll:1.1
*** /dev/null	Thu Feb  8 22:49:56 2007
--- llvm/test/CodeGen/PowerPC/long-compare.ll	Thu Feb  8 22:49:46 2007
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep cntlzw &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep xori &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'li ' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'mr '
+ 
+ define i1 @test(i64 %x) {
+   %tmp = icmp ult i64 %x, 4294967296
+   ret i1 %tmp
+ }






More information about the llvm-commits mailing list