test for the formation of shladd

llvm-svn: 24077
This commit is contained in:
Duraid Madina 2005-10-29 04:06:49 +00:00
parent 8270c33606
commit e71426f581
1 changed files with 11 additions and 0 deletions

View 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
}