repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use static inline to do the right thing when built in C99 mode. Of course,
[llvm/stm8.git]
/
test
/
CodeGen
/
ARM
/
mul.ll
blob
466a8020accec8cad9b623f4e8ef636e008787fa
1
; RUN: llc < %s -march=arm | grep mul | count 2
2
; RUN: llc < %s -march=arm | grep lsl | count 2
3
4
define i32 @f1(i32 %u) {
5
%tmp = mul i32 %u, %u
6
ret i32 %tmp
7
}
8
9
define i32 @f2(i32 %u, i32 %v) {
10
%tmp = mul i32 %u, %v
11
ret i32 %tmp
12
}
13
14
define i32 @f3(i32 %u) {
15
%tmp = mul i32 %u, 5
16
ret i32 %tmp
17
}
18
19
define i32 @f4(i32 %u) {
20
%tmp = mul i32 %u, 4
21
ret i32 %tmp
22
}