1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/X86/mul-remat.ll
Dan Gohman 70b9b2f77f Don't mark scalar integer multiplication as Expand on x86, since x86
has plain one-result scalar integer multiplication instructions.
This avoids expanding such instructions into MUL_LOHI sequences that
must be special-cased at isel time, and avoids the problem with that
code that provented memory operands from being folded.

This fixes PR1874, addressesing the most common case. The uncommon
cases of optimizing multiply-high operations will require work
in DAGCombiner.

llvm-svn: 47277
2008-02-18 17:55:26 +00:00

9 lines
152 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 | grep mov | count 1
; PR1874
define i32 @test(i32 %a, i32 %b) {
entry:
%tmp3 = mul i32 %b, %a
ret i32 %tmp3
}