mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
added s4addl matching test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
483f22d817
commit
003e68e442
14
test/CodeGen/Alpha/s4addl.ll
Normal file
14
test/CodeGen/Alpha/s4addl.ll
Normal file
@ -0,0 +1,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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user