1 ; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s 2 ; rdar://7069502 3 4 define i32 @t1(i32 %v) nounwind readnone { 5 entry: 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 12 define i32 @t2(i32 %v) nounwind readnone { 13 entry: 14 ; CHECK-LABEL: t2: 15 ; CHECK: rsb r0, r0, r0, lsl #3 16 %0 = mul i32 %v, 7 17 ret i32 %0 18 } 19