[llvm-commits] CVS: llvm/test/CodeGen/X86/i128-mul.ll
Chris Lattner
sabre at nondot.org
Tue Feb 13 15:41:41 PST 2007
Changes in directory llvm/test/CodeGen/X86:
i128-mul.ll added (r1.1)
---
Log message:
new testcase, by Dan Gohman
---
Diffs of the changes: (+12 -0)
i128-mul.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/CodeGen/X86/i128-mul.ll
diff -c /dev/null llvm/test/CodeGen/X86/i128-mul.ll:1.1
*** /dev/null Tue Feb 13 17:41:34 2007
--- llvm/test/CodeGen/X86/i128-mul.ll Tue Feb 13 17:41:24 2007
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=x86-64
+ ; PR1198
+
+ define i64 @foo(i64 %x, i64 %y) {
+ %tmp0 = zext i64 %x to i128
+ %tmp1 = zext i64 %y to i128
+ %tmp2 = mul i128 %tmp0, %tmp1
+ %tmp7 = zext i32 64 to i128
+ %tmp3 = lshr i128 %tmp2, %tmp7
+ %tmp4 = trunc i128 %tmp3 to i64
+ ret i64 %tmp4
+ }
More information about the llvm-commits
mailing list