• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
2; rdar://7069502
3
4define i32 @t1(i32 %v) nounwind readnone {
5entry:
6; CHECK-LABEL: t1:
7; CHECK: add.w r0, r0, r0, lsl #3
8	%0 = mul i32 %v, 9
9	ret i32 %0
10}
11
12define i32 @t2(i32 %v) nounwind readnone {
13entry:
14; CHECK-LABEL: t2:
15; CHECK: rsb r0, r0, r0, lsl #3
16	%0 = mul i32 %v, 7
17	ret i32 %0
18}
19