1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
4 define i32 @f1(i32 %a) {
9 ; CHECK: rsb.w r0, r0, #171
11 ; 1179666 = 0x00120012
12 define i32 @f2(i32 %a) {
13 %tmp = sub i32 1179666, %a
17 ; CHECK: rsb.w r0, r0, #1179666
19 ; 872428544 = 0x34003400
20 define i32 @f3(i32 %a) {
21 %tmp = sub i32 872428544, %a
25 ; CHECK: rsb.w r0, r0, #872428544
27 ; 1448498774 = 0x56565656
28 define i32 @f4(i32 %a) {
29 %tmp = sub i32 1448498774, %a
33 ; CHECK: rsb.w r0, r0, #1448498774
35 ; 66846720 = 0x03fc0000
36 define i32 @f5(i32 %a) {
37 %tmp = sub i32 66846720, %a
41 ; CHECK: rsb.w r0, r0, #66846720