1 ; RUN: llc -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mattr=+no-movt -mtriple=armv7-apple-ios < %s | FileCheck %s --check-prefix=CHECK --check-prefix=ARM
2 ; RUN: llc -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mattr=+no-movt -mtriple=armv7-linux-gnueabi < %s | FileCheck %s --check-prefix=CHECK --check-prefix=ARM
3 ; RUN: llc -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mattr=+no-movt -mtriple=thumbv7-apple-ios < %s | FileCheck %s --check-prefix=CHECK --check-prefix=ARM
4 ; RUN: llc -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios < %s | FileCheck %s --check-prefix=CHECK --check-prefix=THUMB
5 ; RUN: llc -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios < %s | FileCheck %s --check-prefix=MOVT
8 define void @t1() nounwind {
12 call void @foo(i32 -1)
16 declare void @foo(i32)
18 define void @t2() nounwind {
22 call void @foo(i32 -234)
26 define void @t3() nounwind {
30 call void @foo(i32 -257)
34 ; Load from constant pool
35 define void @t4() nounwind {
40 ; THUMB: movw r0, #65278
41 ; THUMB: movt r0, #65535
42 call void @foo(i32 -258)
46 define void @t5() nounwind {
49 ; CHECK: mvn r0, #65280
50 call void @foo(i32 -65281)
54 define void @t6() nounwind {
57 ; CHECK: mvn r0, #978944
58 call void @foo(i32 -978945)
62 define void @t7() nounwind {
65 ; CHECK: mvn r0, #267386880
66 call void @foo(i32 -267386881)
70 define void @t8() nounwind {
73 ; CHECK: mvn r0, #65280
74 call void @foo(i32 -65281)
78 define void @t9() nounwind {
81 ; CHECK: mvn r0, #2130706432
82 call void @foo(i32 -2130706433)
86 ; Load from constant pool.
87 define i32 @t10(i32 %a) {
90 %1 = xor i32 -1998730207, %a