aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-10-08 20:48:12 +0000
committerDan Gohman <djg@cray.com>2007-10-08 20:48:12 +0000
commit5238cea150b321655aaad495ed58e8bc930d16fb (patch)
treeef008343ed66b1d3a7b24c6c5606968046dbe2ad /test/CodeGen/X86
parent6ce55c06c6b40df7a61256a1d28abf59e86e7719 (diff)
downloadexternal_llvm-5238cea150b321655aaad495ed58e8bc930d16fb.zip
external_llvm-5238cea150b321655aaad495ed58e8bc930d16fb.tar.gz
external_llvm-5238cea150b321655aaad495ed58e8bc930d16fb.tar.bz2
These two tests now require only three multiply instructions,
instead of four. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/mul128.ll6
-rw-r--r--test/CodeGen/X86/mul64.ll6
2 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/mul128.ll b/test/CodeGen/X86/mul128.ll
new file mode 100644
index 0000000..c0ce6b3
--- /dev/null
+++ b/test/CodeGen/X86/mul128.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | grep mul | count 3
+
+define i128 @foo(i128 %t, i128 %u) {
+ %k = mul i128 %t, %u
+ ret i128 %k
+}
diff --git a/test/CodeGen/X86/mul64.ll b/test/CodeGen/X86/mul64.ll
new file mode 100644
index 0000000..cd0f802
--- /dev/null
+++ b/test/CodeGen/X86/mul64.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep mul | count 3
+
+define i64 @foo(i64 %t, i64 %u) {
+ %k = mul i64 %t, %u
+ ret i64 %k
+}