mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
New test case: use lea for imul by some constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6d80a4ecf
commit
9394514ede
8
test/CodeGen/X86/imul-lea.ll
Normal file
8
test/CodeGen/X86/imul-lea.ll
Normal file
@ -0,0 +1,8 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 | grep lea
|
||||
|
||||
declare int %foo()
|
||||
int %test() {
|
||||
%tmp.0 = tail call int %foo( ) ; <int> [#uses=1]
|
||||
%tmp.1 = mul int %tmp.0, 9 ; <int> [#uses=1]
|
||||
ret int %tmp.1
|
||||
}
|
9
test/CodeGen/X86/store-global-address.ll
Normal file
9
test/CodeGen/X86/store-global-address.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 | grep movl | wc -l | grep 1
|
||||
|
||||
%dst = global int 0
|
||||
%ptr = global int* null
|
||||
|
||||
void %test() {
|
||||
store int* %dst, int** %ptr
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user