[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/cmp-test.ll test-not-cmp.ll

Evan Cheng evan.cheng at apple.com
Sun Sep 10 19:33:44 PDT 2006



Changes in directory llvm/test/Regression/CodeGen/X86:

cmp-test.ll added (r1.1)
test-not-cmp.ll (r1.1) removed
---
Log message:

Rename a test-not-cmp.ll to cmp-test.ll; add a test.

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

 cmp-test.ll |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/cmp-test.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/cmp-test.ll:1.1
*** /dev/null	Sun Sep 10 21:33:39 2006
--- llvm/test/Regression/CodeGen/X86/cmp-test.ll	Sun Sep 10 21:33:29 2006
***************
*** 0 ****
--- 1,28 ----
+ ; RUN: llvm-as < %s | llc -march=x86 &&
+ ; RUN: llvm-as < %s | llc -march=x86 | grep cmp  | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 | grep test | wc -l | grep 1
+ 
+ int %f1(int %X, int* %y) {
+ 	%tmp = load int* %y
+ 	%tmp = seteq int %tmp, 0
+ 	br bool %tmp, label %ReturnBlock, label %cond_true
+ 
+ cond_true:
+ 	ret int 1
+ 
+ ReturnBlock:
+ 	ret int 0
+ }
+ 
+ int %f2(int %X, int* %y) {
+ 	%tmp = load int* %y
+         %tmp1 = shl int %tmp, ubyte 3
+ 	%tmp1 = seteq int %tmp1, 0
+ 	br bool %tmp1, label %ReturnBlock, label %cond_true
+ 
+ cond_true:
+ 	ret int 1
+ 
+ ReturnBlock:
+ 	ret int 0
+ }






More information about the llvm-commits mailing list