1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s 2 3 ; 734439407618 = 0x000000ab00000002 4 define i64 @f1(i64 %a) { 5 ; CHECK: f1: 6 ; CHECK: adds r0, #2 7 %tmp = add i64 %a, 734439407618 8 ret i64 %tmp 9 } 10 11 ; 5066626890203138 = 0x0012001200000002 12 define i64 @f2(i64 %a) { 13 ; CHECK: f2: 14 ; CHECK: adds r0, #2 15 %tmp = add i64 %a, 5066626890203138 16 ret i64 %tmp 17 } 18 19 ; 3747052064576897026 = 0x3400340000000002 20 define i64 @f3(i64 %a) { 21 ; CHECK: f3: 22 ; CHECK: adds r0, #2 23 %tmp = add i64 %a, 3747052064576897026 24 ret i64 %tmp 25 } 26 27 ; 6221254862626095106 = 0x5656565600000002 28 define i64 @f4(i64 %a) { 29 ; CHECK: f4: 30 ; CHECK: adds r0, #2 31 %tmp = add i64 %a, 6221254862626095106 32 ret i64 %tmp 33 } 34 35 ; 287104476244869122 = 0x03fc000000000002 36 define i64 @f5(i64 %a) { 37 ; CHECK: f5: 38 ; CHECK: adds r0, #2 39 %tmp = add i64 %a, 287104476244869122 40 ret i64 %tmp 41 } 42 43 define i64 @f6(i64 %a, i64 %b) { 44 ; CHECK: f6: 45 ; CHECK: adds r0, r0, r2 46 %tmp = add i64 %a, %b 47 ret i64 %tmp 48 } 49