summaryrefslogtreecommitdiff
path: root/test/CodeGen/IA64/2005-10-29-shladd.ll
blob: 0f241abca6e176877be9db28694d924cc6705ffe (plain)
1
2
3
4
5
6
7
8
9
10
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
}