1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/CodeGen/Alpha/s4addl.ll
Andrew Lenharth 9be54f8a6a added s4addl matching test
llvm-svn: 21277
2005-04-13 04:41:06 +00:00

15 lines
345 B
LLVM

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