1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #11206827
2 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
3 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
4 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
5 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
6 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #2868947712
7 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
8 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
9 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
10 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
11 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #2880154539
12 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
13 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
14 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
15 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
16 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #251658240
17 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #3948544
18 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | grep movt
19 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #258
20 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep #4026531840
24 ; var 2.1 - 0x00ab00ab
25 define i32 @t2_const_var2_1_ok_1(i32 %lhs) {
26 %ret = add i32 %lhs, 11206827 ; 0x00ab00ab
30 define i32 @t2_const_var2_1_fail_1(i32 %lhs) {
31 %ret = add i32 %lhs, 11206843 ; 0x00ab00bb
35 define i32 @t2_const_var2_1_fail_2(i32 %lhs) {
36 %ret = add i32 %lhs, 27984043 ; 0x01ab00ab
40 define i32 @t2_const_var2_1_fail_3(i32 %lhs) {
41 %ret = add i32 %lhs, 27984299 ; 0x01ab01ab
45 define i32 @t2_const_var2_1_fail_4(i32 %lhs) {
46 %ret = add i32 %lhs, 28027649 ; 0x01abab01
50 ; var 2.2 - 0xab00ab00
51 define i32 @t2_const_var2_2_ok_1(i32 %lhs) {
52 %ret = add i32 %lhs, 2868947712 ; 0xab00ab00
56 define i32 @t2_const_var2_2_fail_1(i32 %lhs) {
57 %ret = add i32 %lhs, 2868951552 ; 0xab00ba00
61 define i32 @t2_const_var2_2_fail_2(i32 %lhs) {
62 %ret = add i32 %lhs, 2868947728 ; 0xab00ab10
66 define i32 @t2_const_var2_2_fail_3(i32 %lhs) {
67 %ret = add i32 %lhs, 2869996304 ; 0xab10ab10
71 define i32 @t2_const_var2_2_fail_4(i32 %lhs) {
72 %ret = add i32 %lhs, 279685904 ; 0x10abab10
76 ; var 2.3 - 0xabababab
77 define i32 @t2_const_var2_3_ok_1(i32 %lhs) {
78 %ret = add i32 %lhs, 2880154539 ; 0xabababab
82 define i32 @t2_const_var2_3_fail_1(i32 %lhs) {
83 %ret = add i32 %lhs, 2880154554 ; 0xabababba
87 define i32 @t2_const_var2_3_fail_2(i32 %lhs) {
88 %ret = add i32 %lhs, 2880158379 ; 0xababbaab
92 define i32 @t2_const_var2_3_fail_3(i32 %lhs) {
93 %ret = add i32 %lhs, 2881137579 ; 0xabbaabab
97 define i32 @t2_const_var2_3_fail_4(i32 %lhs) {
98 %ret = add i32 %lhs, 3131812779 ; 0xbaababab
103 define i32 @t2_const_var3_1_ok_1(i32 %lhs) {
104 %ret = add i32 %lhs, 251658240 ; 0x0F000000
108 define i32 @t2_const_var3_2_ok_1(i32 %lhs) {
109 %ret = add i32 %lhs, 3948544 ; 0b00000000001111000100000000000000
113 define i32 @t2_const_var3_2_fail_1(i32 %lhs) {
114 %ret = add i32 %lhs, 3940352 ; 0b00000000001111000010000000000000
118 define i32 @t2_const_var3_3_ok_1(i32 %lhs) {
119 %ret = add i32 %lhs, 258 ; 0b00000000000000000000000100000010
123 define i32 @t2_const_var3_4_ok_1(i32 %lhs) {
124 %ret = add i32 %lhs, 4026531840 ; 0xF0000000