repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Shrink Thumb2 movcc instructions.
[llvm/avr.git]
/
test
/
CodeGen
/
ARM
/
mul.ll
blob
3543b5de55db73716915690cb13d666416f98d16
1
; RUN: llvm-as < %s | llc -march=arm | grep mul | count 2
2
; RUN: llvm-as < %s | llc -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
}