projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Teach the (non-MC) instruction printer to use the cannonical names for push/pop,
[oota-llvm.git]
/
test
/
CodeGen
/
Thumb2
/
mul_const.ll
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
}