aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/s4addl.ll
blob: 1a92d63fb8483a7c5e2d4a6cafc1e95bbe8a7b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; Make sure this testcase codegens to the bic instruction
; RUN: llvm-as < %s | llc -march=alpha | grep 's4addl'

; ModuleID = 'test.o'
deplibs = [ "c", "crtend" ]

implementation   ; Functions:

int %foo(int %x, int %y) {
entry:
	%tmp.1 = shl int %y, ubyte 2		; <int> [#uses=1]
	%tmp.3 = add int %tmp.1, %x		; <int> [#uses=1]
	ret int %tmp.3
}