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
/
Thumb2
/
mul_const.ll
blob
091516a1fb2066afc8b45c130d6363f0275a2815
1
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | FileCheck %s
2
; rdar://7069502
3
4
define i32 @t1(i32 %v) nounwind readnone {
5
entry:
6
; CHECK: t1:
7
; CHECK: add.w r0, r0, r0, lsl #3
8
%0 = mul i32 %v, 9
9
ret i32 %0
10
}
11
12
define i32 @t2(i32 %v) nounwind readnone {
13
entry:
14
; CHECK: t2:
15
; CHECK: rsb r0, r0, r0, lsl #3
16
%0 = mul i32 %v, 7
17
ret i32 %0
18
}