1 ; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
4 define i64 @f1(i64 %a) {
7 ; CHECK: sbc r1, r1, #0
12 ; 1179666 = 0x00120012
13 define i64 @f2(i64 %a) {
15 ; CHECK: subs.w r0, r0, #1179666
16 ; CHECK: sbc r1, r1, #0
17 %tmp = sub i64 %a, 1179666
21 ; 872428544 = 0x34003400
22 define i64 @f3(i64 %a) {
24 ; CHECK: subs.w r0, r0, #872428544
25 ; CHECK: sbc r1, r1, #0
26 %tmp = sub i64 %a, 872428544
30 ; 1448498774 = 0x56565656
31 define i64 @f4(i64 %a) {
33 ; CHECK: subs.w r0, r0, #1448498774
34 ; CHECK: sbc r1, r1, #0
35 %tmp = sub i64 %a, 1448498774
39 ; 66846720 = 0x03fc0000
40 define i64 @f5(i64 %a) {
42 ; CHECK: subs.w r0, r0, #66846720
43 ; CHECK: sbc r1, r1, #0
44 %tmp = sub i64 %a, 66846720
48 ; 734439407618 = 0x000000ab00000002
49 define i64 @f6(i64 %a) {
52 ; CHECK: sbc r1, r1, #171
53 %tmp = sub i64 %a, 734439407618