projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make sure mul by constant 5 is turned into a s4addq
[oota-llvm.git]
/
test
/
CodeGen
/
Alpha
/
mul5.ll
1
; Make sure this testcase does not use mulq
2
; RUN: llvm-as < %s | llc -march=alpha | grep -i 'mul' |wc -l |grep 0
3
4
implementation ; Functions:
5
6
ulong %foo(ulong %x) {
7
entry:
8
%tmp.1 = mul ulong %x, 5 ; <ulong> [#uses=1]
9
ret ulong %tmp.1
10
}
11
12
long %bar(long %x) {
13
entry:
14
%tmp.1 = mul long %x, 5 ; <long> [#uses=1]
15
ret long %tmp.1
16
}