mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
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
This commit is contained in:
parent
f19b8e43b3
commit
b5d12c4438
6
test/CodeGen/X86/mul128.ll
Normal file
6
test/CodeGen/X86/mul128.ll
Normal file
@ -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
|
||||||
|
}
|
6
test/CodeGen/X86/mul64.ll
Normal file
6
test/CodeGen/X86/mul64.ll
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user