mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
test for the formation of shladd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24077 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
455fcc8d35
commit
ad85677879
11
test/CodeGen/IA64/2005-10-29-shladd.ll
Normal file
11
test/CodeGen/IA64/2005-10-29-shladd.ll
Normal file
@ -0,0 +1,11 @@
|
||||
; this should turn into shladd
|
||||
; RUN: llvm-as < %s | llc -march=ia64 | grep 'shladd'
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
long %bogglesmoggle(long %X, long %Y) {
|
||||
%A = shl long %X, ubyte 3
|
||||
%B = add long %A, %Y
|
||||
ret long %B
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user