1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | FileCheck %s
4 define i32 @f1(i32 %a) {
6 ; CHECK: sub.w r0, r0, #171
11 ; 1179666 = 0x00120012
12 define i32 @f2(i32 %a) {
14 ; CHECK: sub.w r0, r0, #1179666
15 %tmp = sub i32 %a, 1179666
19 ; 872428544 = 0x34003400
20 define i32 @f3(i32 %a) {
22 ; CHECK: sub.w r0, r0, #872428544
23 %tmp = sub i32 %a, 872428544
27 ; 1448498774 = 0x56565656
28 define i32 @f4(i32 %a) {
30 ; CHECK: sub.w r0, r0, #1448498774
31 %tmp = sub i32 %a, 1448498774
36 define i32 @f5(i32 %a) {
38 ; CHECK: sub.w r0, r0, #510
39 %tmp = sub i32 %a, 510
43 ; Don't change this to an add.
44 define i32 @f6(i32 %a) {
46 ; CHECK: sub.w r0, r0, #1