[llvm-commits] CVS: llvm/test/Transforms/InstCombine/add2.ll
Chris Lattner
sabre at nondot.org
Sun Mar 4 16:02:12 PST 2007
Changes in directory llvm/test/Transforms/InstCombine:
add2.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+12 -0)
add2.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Transforms/InstCombine/add2.ll
diff -c /dev/null llvm/test/Transforms/InstCombine/add2.ll:1.1
*** /dev/null Sun Mar 4 18:01:48 2007
--- llvm/test/Transforms/InstCombine/add2.ll Sun Mar 4 18:01:38 2007
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
+ ; RUN: grep -v OK | not grep add
+
+ define i64 @test1(i64 %A, i32 %B) {
+ %tmp12 = zext i32 %B to i64
+ %tmp3 = shl i64 %tmp12, 32
+ %tmp5 = add i64 %tmp3, %A
+ %tmp6 = and i64 %tmp5, 123
+ ret i64 %tmp6
+ }
+
More information about the llvm-commits
mailing list