source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/subtarget-no-movt.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 1.6 KB
Line 
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
22define 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
40define i32 @foo1(i32 %a) {
41  %1 = xor i32 -1998730207, %a
42  ret i32 %1
43}
44
45attributes #0 = { "target-features"="+no-movt" }
Note: See TracBrowser for help on using the repository browser.