summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/extmul128.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-09 15:39:37 +0000
committerDan Gohman <gohman@apple.com>2007-10-09 15:39:37 +0000
commitdde01ec40987ff3f187f0cff43cbbe52ea06615e (patch)
tree0620e1c194a0be16a5a4403e3c45be5416bcc071 /test/CodeGen/X86/extmul128.ll
parentb76143cf8f5048e460f8df2ce8995a02ccc40012 (diff)
downloadllvm-dde01ec40987ff3f187f0cff43cbbe52ea06615e.tar.gz
llvm-dde01ec40987ff3f187f0cff43cbbe52ea06615e.tar.bz2
llvm-dde01ec40987ff3f187f0cff43cbbe52ea06615e.tar.xz
These two tests now require only two multiply instructions,
instead of four. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/extmul128.ll')
-rw-r--r--test/CodeGen/X86/extmul128.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/extmul128.ll b/test/CodeGen/X86/extmul128.ll
new file mode 100644
index 0000000000..df487659ed
--- /dev/null
+++ b/test/CodeGen/X86/extmul128.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | grep mul | count 2
+
+define i128 @i64_sext_i128(i64 %a, i64 %b) {
+ %aa = sext i64 %a to i128
+ %bb = sext i64 %b to i128
+ %cc = mul i128 %aa, %bb
+ ret i128 %cc
+}
+define i128 @i64_zext_i128(i64 %a, i64 %b) {
+ %aa = zext i64 %a to i128
+ %bb = zext i64 %b to i128
+ %cc = mul i128 %aa, %bb
+ ret i128 %cc
+}