[llvm-commits] CVS: llvm/test/CodeGen/Generic/addc-fold2.ll
Chris Lattner
sabre at nondot.org
Sun Mar 4 12:40:06 PST 2007
Changes in directory llvm/test/CodeGen/Generic:
addc-fold2.ll added (r1.1)
---
Log message:
new testcase, corresponds to:
long long test(long long A, unsigned B) {
return (A + ((long long)B << 32));
}
---
Diffs of the changes: (+11 -0)
addc-fold2.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/CodeGen/Generic/addc-fold2.ll
diff -c /dev/null llvm/test/CodeGen/Generic/addc-fold2.ll:1.1
*** /dev/null Sun Mar 4 14:39:57 2007
--- llvm/test/CodeGen/Generic/addc-fold2.ll Sun Mar 4 14:39:47 2007
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc &&
+ ; RUN: llvm-as < %s | llc -march=x86 | grep 'add' &&
+ ; RUN: llvm-as < %s | llc -march=x86 | not grep 'adc'
+
+ define i64 @test(i64 %A, i32 %B) {
+ %tmp12 = zext i32 %B to i64 ; <i64> [#uses=1]
+ %tmp3 = shl i64 %tmp12, 32 ; <i64> [#uses=1]
+ %tmp5 = add i64 %tmp3, %A ; <i64> [#uses=1]
+ ret i64 %tmp5
+ }
+
More information about the llvm-commits
mailing list