From b5d12c443870f8191ffa5dc196ece2ddaaf694d4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 8 Oct 2007 20:48:12 +0000 Subject: [PATCH] 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 --- test/CodeGen/X86/mul128.ll | 6 ++++++ test/CodeGen/X86/mul64.ll | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 test/CodeGen/X86/mul128.ll create mode 100644 test/CodeGen/X86/mul64.ll diff --git a/test/CodeGen/X86/mul128.ll b/test/CodeGen/X86/mul128.ll new file mode 100644 index 00000000000..c0ce6b30931 --- /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 00000000000..cd0f802a711 --- /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 +} -- 2.34.1