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