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 7 8 ; NO-OPTION-LABEL: {{_?}}foo0 9 ; NO-OPTION: ldr [[R0:r[0-9]+]], [[L0:.*]] 10 ; NO-OPTION: [[L0]]: 11 ; NO-OPTION: .long 2296237089 12 13 ; USE-MOVT-LABEL: {{_?}}foo0 14 ; USE-MOVT: movw [[R0:r[0-9]+]], #52257 15 ; USE-MOVT: movt [[R0]], #35037 16 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 21 22 define i32 @foo0(i32 %a) #0 { 23 %1 = xor i32 -1998730207, %a 24 ret i32 %1 25 } 26 27 ; NO-OPTION-LABEL: {{_?}}foo1 28 ; NO-OPTION: movw [[R0:r[0-9]+]], #52257 29 ; NO-OPTION: movt [[R0]], #35037 30 31 ; USE-MOVT-LABEL: {{_?}}foo1 32 ; USE-MOVT: movw [[R0:r[0-9]+]], #52257 33 ; USE-MOVT: movt [[R0]], #35037 34 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 39 40 define i32 @foo1(i32 %a) { 41 %1 = xor i32 -1998730207, %a 42 ret i32 %1 43 } 44 45 attributes #0 = { "target-features"="+no-movt" } 46