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
Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[llvm/avr.git]
/
test
/
CodeGen
/
ARM
/
mul_const.ll
blob
f5ace1852a48b51fe3ba756ff9d43017d6878382
1
; RUN: llvm-as < %s | llc -march=arm | FileCheck %s
2
3
define i32 @t1(i32 %v) nounwind readnone {
4
entry:
5
; CHECK: t1:
6
; CHECK: add r0, r0, r0, lsl #3
7
%0 = mul i32 %v, 9
8
ret i32 %0
9
}
10
11
define i32 @t2(i32 %v) nounwind readnone {
12
entry:
13
; CHECK: t2:
14
; CHECK: rsb r0, r0, r0, lsl #3
15
%0 = mul i32 %v, 7
16
ret i32 %0
17
}