1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s 2 3 ; 171 = 0x000000ab 4 define i32 @f1(i32 %a) { 5 ; CHECK: f1: 6 ; CHECK: adds r0, #171 7 %tmp = add i32 %a, 171 8 ret i32 %tmp 9 } 10 11 ; 1179666 = 0x00120012 12 define i32 @f2(i32 %a) { 13 ; CHECK: f2: 14 ; CHECK: add.w r0, r0, #1179666 15 %tmp = add i32 %a, 1179666 16 ret i32 %tmp 17 } 18 19 ; 872428544 = 0x34003400 20 define i32 @f3(i32 %a) { 21 ; CHECK: f3: 22 ; CHECK: add.w r0, r0, #872428544 23 %tmp = add i32 %a, 872428544 24 ret i32 %tmp 25 } 26 27 ; 1448498774 = 0x56565656 28 define i32 @f4(i32 %a) { 29 ; CHECK: f4: 30 ; CHECK: add.w r0, r0, #1448498774 31 %tmp = add i32 %a, 1448498774 32 ret i32 %tmp 33 } 34 35 ; 510 = 0x000001fe 36 define i32 @f5(i32 %a) { 37 ; CHECK: f5: 38 ; CHECK: add.w r0, r0, #510 39 %tmp = add i32 %a, 510 40 ret i32 %tmp 41 } 42