summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CodeGen/PowerPC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-27 21:52:39 +0000
committerChris Lattner <sabre@nondot.org>2006-10-27 21:52:39 +0000
commitfeaa76a3ccf4d46bdfb384b050066e35da909093 (patch)
tree99ba559c51e4b5e7ad8734425dd821adfcfab451 /llvm/test/Regression/CodeGen/PowerPC
parented0110b9490320224c8bb6d7f768a700033a6aa8 (diff)
downloadbcm5719-llvm-feaa76a3ccf4d46bdfb384b050066e35da909093.tar.gz
bcm5719-llvm-feaa76a3ccf4d46bdfb384b050066e35da909093.zip
new testcase
llvm-svn: 31231
Diffstat (limited to 'llvm/test/Regression/CodeGen/PowerPC')
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/and-branch.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/and-branch.ll b/llvm/test/Regression/CodeGen/PowerPC/and-branch.ll
new file mode 100644
index 00000000000..676e898e3ad
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/PowerPC/and-branch.ll
@@ -0,0 +1,19 @@
+; RUN: llvm-as < %s | llc -march=ppc32 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep mfcr
+
+void %foo(int %X, int %Y, int %Z) {
+entry:
+ %tmp = seteq int %X, 0 ; <bool> [#uses=1]
+ %tmp3 = setlt int %Y, 5 ; <bool> [#uses=1]
+ %tmp4 = and bool %tmp3, %tmp ; <bool> [#uses=1]
+ br bool %tmp4, label %cond_true, label %UnifiedReturnBlock
+
+cond_true: ; preds = %entry
+ %tmp5 = tail call int (...)* %bar( ) ; <int> [#uses=0]
+ ret void
+
+UnifiedReturnBlock: ; preds = %entry
+ ret void
+}
+
+declare int %bar(...)
OpenPOWER on IntegriCloud