summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/long-compare.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-09 04:49:46 +0000
committerChris Lattner <sabre@nondot.org>2007-02-09 04:49:46 +0000
commit511e1d1456243b77b49c73d0003baddddcc77a6e (patch)
tree878e0293c55466b30514917cf8ad50725c04c56c /test/CodeGen/PowerPC/long-compare.ll
parent8c541bcc56fd7327f3d8d74653ae6df25921250e (diff)
Add ppc-specific test for better i64 compare codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/long-compare.ll')
-rw-r--r--test/CodeGen/PowerPC/long-compare.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/long-compare.ll b/test/CodeGen/PowerPC/long-compare.ll
new file mode 100644
index 00000000000..8dc5ae138ee
--- /dev/null
+++ b/test/CodeGen/PowerPC/long-compare.ll
@@ -0,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
+}