1 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s
2 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT %s
3 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT %s
4 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION %s
5 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT %s
6 ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT %s
8 ; NO-OPTION-LABEL: {{_?}}foo0
9 ; NO-OPTION: ldr [[R0:r[0-9]+]], [[L0:.*]]
11 ; NO-OPTION: .long 2296237089
13 ; USE-MOVT-LABEL: {{_?}}foo0
14 ; USE-MOVT: movw [[R0:r[0-9]+]], #52257
15 ; USE-MOVT: movt [[R0]], #35037
17 ; NO-USE-MOVT-LABEL: {{_?}}foo0
18 ; NO-USE-MOVT: ldr [[R0:r[0-9]+]], [[L0:.*]]
19 ; NO-USE-MOVT: [[L0]]:
20 ; NO-USE-MOVT: .long 2296237089
22 define i32 @foo0(i32 %a) #0 {
23 %1 = xor i32 -1998730207, %a
27 ; NO-OPTION-LABEL: {{_?}}foo1
28 ; NO-OPTION: movw [[R0:r[0-9]+]], #52257
29 ; NO-OPTION: movt [[R0]], #35037
31 ; USE-MOVT-LABEL: {{_?}}foo1
32 ; USE-MOVT: movw [[R0:r[0-9]+]], #52257
33 ; USE-MOVT: movt [[R0]], #35037
35 ; NO-USE-MOVT-LABEL: {{_?}}foo1
36 ; NO-USE-MOVT: ldr [[R0:r[0-9]+]], [[L0:.*]]
37 ; NO-USE-MOVT: [[L0]]:
38 ; NO-USE-MOVT: .long 2296237089
40 define i32 @foo1(i32 %a) {
41 %1 = xor i32 -1998730207, %a
45 attributes #0 = { "target-features"="+no-movt" }