[llvm-commits] [llvm] r42765 - in /llvm/trunk/test/CodeGen/X86: mul128.ll mul64.ll
Dan Gohman
djg at cray.com
Mon Oct 8 13:48:13 PDT 2007
Author: djg
Date: Mon Oct 8 15:48:12 2007
New Revision: 42765
URL: http://llvm.org/viewvc/llvm-project?rev=42765&view=rev
Log:
These two tests now require only three multiply instructions,
instead of four.
Added:
llvm/trunk/test/CodeGen/X86/mul128.ll
llvm/trunk/test/CodeGen/X86/mul64.ll
Added: llvm/trunk/test/CodeGen/X86/mul128.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mul128.ll?rev=42765&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mul128.ll (added)
+++ llvm/trunk/test/CodeGen/X86/mul128.ll Mon Oct 8 15:48:12 2007
@@ -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
+}
Added: llvm/trunk/test/CodeGen/X86/mul64.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mul64.ll?rev=42765&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mul64.ll (added)
+++ llvm/trunk/test/CodeGen/X86/mul64.ll Mon Oct 8 15:48:12 2007
@@ -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
+}
More information about the llvm-commits
mailing list