summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/setcc_no_zext.ll
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-04-13 21:45:13 +0000
committerNate Begeman <natebegeman@mac.com>2005-04-13 21:45:13 +0000
commit77a6d9032fcc4e3c847048b9cc6c0ac42efdcfc6 (patch)
treecea987095342b1d2002389d93c56be442466af18 /test/CodeGen/PowerPC/setcc_no_zext.ll
parenteea805e74ce49f98e03c87a20cf2e6a6ff1b7c52 (diff)
downloadllvm-77a6d9032fcc4e3c847048b9cc6c0ac42efdcfc6.tar.gz
llvm-77a6d9032fcc4e3c847048b9cc6c0ac42efdcfc6.tar.bz2
llvm-77a6d9032fcc4e3c847048b9cc6c0ac42efdcfc6.tar.xz
Add CodeGen tests for the recent SelectionDAG transforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/setcc_no_zext.ll')
-rw-r--r--test/CodeGen/PowerPC/setcc_no_zext.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/setcc_no_zext.ll b/test/CodeGen/PowerPC/setcc_no_zext.ll
new file mode 100644
index 0000000000..e28d48107d
--- /dev/null
+++ b/test/CodeGen/PowerPC/setcc_no_zext.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | not grep rlwinm
+
+int %setcc_one_or_zero(int* %a) {
+entry:
+ %tmp.1 = setne int* %a, null
+ %inc.1 = cast bool %tmp.1 to int
+ ret int %inc.1
+}