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
make tblgen produce a function that returns the name for a physreg.
[llvm/avr.git]
/
test
/
CodeGen
/
Thumb2
/
mul_const.ll
blob
9a2ec93a5adc690fbb51959f6050c234344e4295
1
; RUN: llc < %s -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
}