1 ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
3 define i32 @t9(i32 %v) nounwind readnone {
6 ; CHECK: add r0, r0, r0, lsl #3
11 define i32 @t7(i32 %v) nounwind readnone {
14 ; CHECK: rsb r0, r0, r0, lsl #3
19 define i32 @t5(i32 %v) nounwind readnone {
22 ; CHECK: add r0, r0, r0, lsl #2
27 define i32 @t3(i32 %v) nounwind readnone {
30 ; CHECK: add r0, r0, r0, lsl #1
35 define i32 @t12288(i32 %v) nounwind readnone {
37 ; CHECK-LABEL: t12288:
38 ; CHECK: add r0, r0, r0, lsl #1
40 %0 = mul i32 %v, 12288
44 define i32 @tn9(i32 %v) nounwind readnone {
47 ; CHECK: add r0, r0, r0, lsl #3
48 ; CHECK: rsb r0, r0, #0
53 define i32 @tn7(i32 %v) nounwind readnone {
56 ; CHECK: sub r0, r0, r0, lsl #3
61 define i32 @tn5(i32 %v) nounwind readnone {
64 ; CHECK: add r0, r0, r0, lsl #2
65 ; CHECK: rsb r0, r0, #0
70 define i32 @tn3(i32 %v) nounwind readnone {
73 ; CHECK: sub r0, r0, r0, lsl #2
78 define i32 @tn12288(i32 %v) nounwind readnone {
80 ; CHECK-LABEL: tn12288:
81 ; CHECK: sub r0, r0, r0, lsl #2
83 %0 = mul i32 %v, -12288