[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/and-branch.ll
Chris Lattner
sabre at nondot.org
Fri Oct 27 14:52:53 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
and-branch.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+19 -0)
and-branch.ll | 19 +++++++++++++++++++
1 files changed, 19 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/and-branch.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/and-branch.ll:1.1
*** /dev/null Fri Oct 27 16:52:49 2006
--- llvm/test/Regression/CodeGen/PowerPC/and-branch.ll Fri Oct 27 16:52:39 2006
***************
*** 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(...)
More information about the llvm-commits
mailing list