1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
6 define i32 @t2_const_var2_1_ok_1(i32 %lhs) {
7 ;CHECK: t2_const_var2_1_ok_1:
9 %ret = add i32 %lhs, 11206827 ; 0x00ab00ab
13 define i32 @t2_const_var2_1_fail_1(i32 %lhs) {
14 ;CHECK: t2_const_var2_1_fail_1:
16 %ret = add i32 %lhs, 11206843 ; 0x00ab00bb
20 define i32 @t2_const_var2_1_fail_2(i32 %lhs) {
21 ;CHECK: t2_const_var2_1_fail_2:
23 %ret = add i32 %lhs, 27984043 ; 0x01ab00ab
27 define i32 @t2_const_var2_1_fail_3(i32 %lhs) {
28 ;CHECK: t2_const_var2_1_fail_3:
30 %ret = add i32 %lhs, 27984299 ; 0x01ab01ab
34 define i32 @t2_const_var2_1_fail_4(i32 %lhs) {
35 ;CHECK: t2_const_var2_1_fail_4:
37 %ret = add i32 %lhs, 28027649 ; 0x01abab01
41 ; var 2.2 - 0xab00ab00
42 define i32 @t2_const_var2_2_ok_1(i32 %lhs) {
43 ;CHECK: t2_const_var2_2_ok_1:
45 %ret = add i32 %lhs, 2868947712 ; 0xab00ab00
49 define i32 @t2_const_var2_2_fail_1(i32 %lhs) {
50 ;CHECK: t2_const_var2_2_fail_1:
52 %ret = add i32 %lhs, 2868951552 ; 0xab00ba00
56 define i32 @t2_const_var2_2_fail_2(i32 %lhs) {
57 ;CHECK: t2_const_var2_2_fail_2:
59 %ret = add i32 %lhs, 2868947728 ; 0xab00ab10
63 define i32 @t2_const_var2_2_fail_3(i32 %lhs) {
64 ;CHECK: t2_const_var2_2_fail_3:
66 %ret = add i32 %lhs, 2869996304 ; 0xab10ab10
70 define i32 @t2_const_var2_2_fail_4(i32 %lhs) {
71 ;CHECK: t2_const_var2_2_fail_4:
73 %ret = add i32 %lhs, 279685904 ; 0x10abab10
77 ; var 2.3 - 0xabababab
78 define i32 @t2_const_var2_3_ok_1(i32 %lhs) {
79 ;CHECK: t2_const_var2_3_ok_1:
81 %ret = add i32 %lhs, 2880154539 ; 0xabababab
85 define i32 @t2_const_var2_3_fail_1(i32 %lhs) {
86 ;CHECK: t2_const_var2_3_fail_1:
88 %ret = add i32 %lhs, 2880154554 ; 0xabababba
92 define i32 @t2_const_var2_3_fail_2(i32 %lhs) {
93 ;CHECK: t2_const_var2_3_fail_2:
95 %ret = add i32 %lhs, 2880158379 ; 0xababbaab
99 define i32 @t2_const_var2_3_fail_3(i32 %lhs) {
100 ;CHECK: t2_const_var2_3_fail_3:
102 %ret = add i32 %lhs, 2881137579 ; 0xabbaabab
106 define i32 @t2_const_var2_3_fail_4(i32 %lhs) {
107 ;CHECK: t2_const_var2_3_fail_4:
109 %ret = add i32 %lhs, 3131812779 ; 0xbaababab
114 define i32 @t2_const_var3_1_ok_1(i32 %lhs) {
115 ;CHECK: t2_const_var3_1_ok_1:
117 %ret = add i32 %lhs, 251658240 ; 0x0F000000
121 define i32 @t2_const_var3_2_ok_1(i32 %lhs) {
122 ;CHECK: t2_const_var3_2_ok_1:
124 %ret = add i32 %lhs, 3948544 ; 0b00000000001111000100000000000000
128 define i32 @t2_const_var3_2_fail_1(i32 %lhs) {
129 ;CHECK: t2_const_var3_2_fail_1:
131 %ret = add i32 %lhs, 3940352 ; 0b00000000001111000010000000000000
135 define i32 @t2_const_var3_3_ok_1(i32 %lhs) {
136 ;CHECK: t2_const_var3_3_ok_1:
138 %ret = add i32 %lhs, 258 ; 0b00000000000000000000000100000010
142 define i32 @t2_const_var3_4_ok_1(i32 %lhs) {
143 ;CHECK: t2_const_var3_4_ok_1:
145 %ret = add i32 %lhs, 4026531840 ; 0xF0000000