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
/
Thumb
/
mul.ll
blob
90f6e25e30115907a35760fa009243bcfa39feb3
1
; RUN: llvm-as < %s | llc -march=thumb | grep mul | count 3
2
; RUN: llvm-as < %s | llc -march=thumb | grep lsl | count 1
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
}