llvm.org GIT mirror llvm / 8fe060d
[Mips] Move 2 test cases from MC to CodeGen. No code changes. Just reassignment of test case files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200064 91177308-0d34-0410-b5e6-96231b3b80d8 Jack Carter 6 years ago
4 changed file(s) with 134 addition(s) and 134 deletion(s). Raw diff Collapse all Expand all
0 ; This tests for directives that will result in
1 ; ELF EFLAGS setting with direct object.
2
3 ; Non-shared (static) is the absence of pic and or cpic.
4
5 ; EF_MIPS_NOREORDER (0x00000001) is always on by default currently
6 ; EF_MIPS_PIC (0x00000002)
7 ; EF_MIPS_CPIC (0x00000004) - See note below
8 ; EF_MIPS_ABI2 (0x00000020) - n32 not tested yet
9 ; EF_MIPS_ARCH_32 (0x50000000)
10 ; EF_MIPS_ARCH_64 (0x60000000)
11 ; EF_MIPS_ARCH_32R2 (0x70000000)
12 ; EF_MIPS_ARCH_64R2 (0x80000000)
13
14 ; Note that EF_MIPS_CPIC is set by -mabicalls which is the default on Linux
15 ; TODO need to support -mno-abicalls
16
17 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32 \
18 ; RUN: -relocation-model=static %s -o - | \
19 ; RUN: FileCheck -check-prefix=CHECK-BE32 %s
20 ;
21 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o - | \
22 ; RUN: FileCheck -check-prefix=CHECK-BE32_PIC %s
23 ;
24 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
25 ; RUN: -relocation-model=static %s -o - | \
26 ; RUN: FileCheck -check-prefix=CHECK-BE32R2 %s
27 ;
28 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 %s -o - | \
29 ; RUN: FileCheck -check-prefix=CHECK-BE32R2_PIC %s
30 ;
31 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
32 ; RUN: -mattr=+micromips -relocation-model=static %s -o - | \
33 ; RUN: FileCheck -check-prefix=CHECK-BE32R2-MICROMIPS %s
34 ;
35 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
36 ; RUN: -mattr=+micromips %s -o - | \
37 ; RUN: FileCheck -check-prefix=CHECK-BE32R2-MICROMIPS_PIC %s
38
39 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64 \
40 ; RUN: -relocation-model=static %s -o - | \
41 ; RUN: FileCheck -check-prefix=CHECK-BE64 %s
42 ;
43 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64 %s -o - | \
44 ; RUN: FileCheck -check-prefix=CHECK-BE64_PIC %s
45 ;
46 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64r2 \
47 ; RUN: -relocation-model=static %s -o - | \
48 ; RUN: FileCheck -check-prefix=CHECK-BE64R2 %s
49 ;
50 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64r2 %s -o - | \
51 ; RUN: FileCheck -check-prefix=CHECK-BE64R2_PIC %s
52
53 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
54 ; RUN: -mattr=+mips16 -relocation-model=pic %s -o - | \
55 ; RUN: FileCheck -check-prefix=CHECK-LE32R2-MIPS16 %s
56
57 ; 32(R1) bit with NO_REORDER and static
58 ; CHECK-BE32: .abicalls
59 ; CHECK-BE32: .option pic0
60 ; CHECK-BE32: .set noreorder
61 ; TODO: Need .set mips32
62 ;
63 ; 32(R1) bit with NO_REORDER and PIC
64 ; CHECK-BE32_PIC: .abicalls
65 ; CHECK-BE32_PIC: .set noreorder
66 ; TODO: Need .set mips32 and check absence of .option pic0
67 ;
68 ; 32R2 bit with NO_REORDER and static
69 ; CHECK-BE32R2: .abicalls
70 ; CHECK-BE32R2: .option pic0
71 ; CHECK-BE32R2: .set noreorder
72 ; TODO: Need .set mips32r2
73 ;
74 ; 32R2 bit with NO_REORDER and PIC
75 ; CHECK-BE32R2_PIC:.abicalls
76 ; CHECK-BE32R2_PIC:.set noreorder
77 ; TODO: Need .set mips32r2 and check absence of .option pic0
78 ;
79 ; 32R2 bit MICROMIPS with NO_REORDER and static
80 ; CHECK-BE32R2-MICROMIPS: .abicalls
81 ; CHECK-BE32R2-MICROMIPS: .option pic0
82 ; CHECK-BE32R2-MICROMIPS: .set micromips
83 ; CHECK-BE32R2-MICROMIPS: .set noreorder
84 ; TODO: Need .set mips32r2
85 ;
86 ; 32R2 bit MICROMIPS with NO_REORDER and PIC
87 ; CHECK-BE32R2-MICROMIPS_PIC: .abicalls
88 ; CHECK-BE32R2-MICROMIPS_PIC: .set micromips
89 ; CHECK-BE32R2-MICROMIPS_PIC: .set noreorder
90 ; TODO: Need .set mips32r2 and check absence of .option pic0
91 ;
92 ; 64(R1) bit with NO_REORDER and static
93 ; CHECK-BE64: .abicalls
94 ; CHECK-BE64: .set noreorder
95 ; TODO: Need .set mips64 and .option pic0
96 ;
97 ; 64(R1) bit with NO_REORDER and PIC
98 ; CHECK-BE64_PIC: .abicalls
99 ; CHECK-BE64_PIC: .set noreorder
100 ; TODO: Need .set mips64 and check absence of .option pic0
101 ;
102 ; 64R2 bit with NO_REORDER and static
103 ; CHECK-BE64R2: .abicalls
104 ; CHECK-BE64R2: .set noreorder
105 ; TODO: Need .set mips64r2 and .option pic0
106 ;
107 ; 64R2 bit with NO_REORDER and PIC
108 ; CHECK-BE64R2_PIC: .abicalls
109 ; CHECK-BE64R2_PIC: .set noreorder
110 ; TODO: Need .set mips64r2 and check absence of .option pic0
111 ;
112 ; 32R2 bit MIPS16 with PIC
113 ; CHECK-LE32R2-MIPS16: .abicalls
114 ; CHECK-LE32R2-MIPS16: .set mips16
115 ; TODO: Need .set mips32r2 and check absence of .option pic0 and noreorder
116
117 define i32 @main() nounwind {
118 entry:
119 ret i32 0
120 }
0 ; This tests value of ELF st_other field for function symbol table entries.
1 ; For microMIPS value should be equal to STO_MIPS_MICROMIPS.
2
3 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips %s \
4 ; RUN: -o - | FileCheck %s
5
6 define i32 @main() nounwind {
7 entry:
8 ret i32 0
9 }
10
11 ; CHECK: .set micromips
12 ; CHECK: main:
+0
-121
test/MC/Mips/elf_eflags.ll less more
None ; This tests for directives that will result in
1 ; ELF EFLAGS setting with direct object.
2
3 ; Non-shared (static) is the absence of pic and or cpic.
4
5 ; EF_MIPS_NOREORDER (0x00000001) is always on by default currently
6 ; EF_MIPS_PIC (0x00000002)
7 ; EF_MIPS_CPIC (0x00000004) - See note below
8 ; EF_MIPS_ABI2 (0x00000020) - n32 not tested yet
9 ; EF_MIPS_ARCH_32 (0x50000000)
10 ; EF_MIPS_ARCH_64 (0x60000000)
11 ; EF_MIPS_ARCH_32R2 (0x70000000)
12 ; EF_MIPS_ARCH_64R2 (0x80000000)
13
14 ; Note that EF_MIPS_CPIC is set by -mabicalls which is the default on Linux
15 ; TODO need to support -mno-abicalls
16
17 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32 \
18 ; RUN: -relocation-model=static %s -o - | \
19 ; RUN: FileCheck -check-prefix=CHECK-BE32 %s
20 ;
21 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o - | \
22 ; RUN: FileCheck -check-prefix=CHECK-BE32_PIC %s
23 ;
24 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
25 ; RUN: -relocation-model=static %s -o - | \
26 ; RUN: FileCheck -check-prefix=CHECK-BE32R2 %s
27 ;
28 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 %s -o - | \
29 ; RUN: FileCheck -check-prefix=CHECK-BE32R2_PIC %s
30 ;
31 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
32 ; RUN: -mattr=+micromips -relocation-model=static %s -o - | \
33 ; RUN: FileCheck -check-prefix=CHECK-BE32R2-MICROMIPS %s
34 ;
35 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
36 ; RUN: -mattr=+micromips %s -o - | \
37 ; RUN: FileCheck -check-prefix=CHECK-BE32R2-MICROMIPS_PIC %s
38
39 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64 \
40 ; RUN: -relocation-model=static %s -o - | \
41 ; RUN: FileCheck -check-prefix=CHECK-BE64 %s
42 ;
43 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64 %s -o - | \
44 ; RUN: FileCheck -check-prefix=CHECK-BE64_PIC %s
45 ;
46 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64r2 \
47 ; RUN: -relocation-model=static %s -o - | \
48 ; RUN: FileCheck -check-prefix=CHECK-BE64R2 %s
49 ;
50 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips64r2 %s -o - | \
51 ; RUN: FileCheck -check-prefix=CHECK-BE64R2_PIC %s
52
53 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 \
54 ; RUN: -mattr=+mips16 -relocation-model=pic %s -o - | \
55 ; RUN: FileCheck -check-prefix=CHECK-LE32R2-MIPS16 %s
56
57 ; 32(R1) bit with NO_REORDER and static
58 ; CHECK-BE32: .abicalls
59 ; CHECK-BE32: .option pic0
60 ; CHECK-BE32: .set noreorder
61 ; TODO: Need .set mips32
62 ;
63 ; 32(R1) bit with NO_REORDER and PIC
64 ; CHECK-BE32_PIC: .abicalls
65 ; CHECK-BE32_PIC: .set noreorder
66 ; TODO: Need .set mips32 and check absence of .option pic0
67 ;
68 ; 32R2 bit with NO_REORDER and static
69 ; CHECK-BE32R2: .abicalls
70 ; CHECK-BE32R2: .option pic0
71 ; CHECK-BE32R2: .set noreorder
72 ; TODO: Need .set mips32r2
73 ;
74 ; 32R2 bit with NO_REORDER and PIC
75 ; CHECK-BE32R2_PIC:.abicalls
76 ; CHECK-BE32R2_PIC:.set noreorder
77 ; TODO: Need .set mips32r2 and check absence of .option pic0
78 ;
79 ; 32R2 bit MICROMIPS with NO_REORDER and static
80 ; CHECK-BE32R2-MICROMIPS: .abicalls
81 ; CHECK-BE32R2-MICROMIPS: .option pic0
82 ; CHECK-BE32R2-MICROMIPS: .set micromips
83 ; CHECK-BE32R2-MICROMIPS: .set noreorder
84 ; TODO: Need .set mips32r2
85 ;
86 ; 32R2 bit MICROMIPS with NO_REORDER and PIC
87 ; CHECK-BE32R2-MICROMIPS_PIC: .abicalls
88 ; CHECK-BE32R2-MICROMIPS_PIC: .set micromips
89 ; CHECK-BE32R2-MICROMIPS_PIC: .set noreorder
90 ; TODO: Need .set mips32r2 and check absence of .option pic0
91 ;
92 ; 64(R1) bit with NO_REORDER and static
93 ; CHECK-BE64: .abicalls
94 ; CHECK-BE64: .set noreorder
95 ; TODO: Need .set mips64 and .option pic0
96 ;
97 ; 64(R1) bit with NO_REORDER and PIC
98 ; CHECK-BE64_PIC: .abicalls
99 ; CHECK-BE64_PIC: .set noreorder
100 ; TODO: Need .set mips64 and check absence of .option pic0
101 ;
102 ; 64R2 bit with NO_REORDER and static
103 ; CHECK-BE64R2: .abicalls
104 ; CHECK-BE64R2: .set noreorder
105 ; TODO: Need .set mips64r2 and .option pic0
106 ;
107 ; 64R2 bit with NO_REORDER and PIC
108 ; CHECK-BE64R2_PIC: .abicalls
109 ; CHECK-BE64R2_PIC: .set noreorder
110 ; TODO: Need .set mips64r2 and check absence of .option pic0
111 ;
112 ; 32R2 bit MIPS16 with PIC
113 ; CHECK-LE32R2-MIPS16: .abicalls
114 ; CHECK-LE32R2-MIPS16: .set mips16
115 ; TODO: Need .set mips32r2 and check absence of .option pic0 and noreorder
116
117 define i32 @main() nounwind {
118 entry:
119 ret i32 0
120 }
+0
-13
test/MC/Mips/elf_st_other.ll less more
None ; This tests value of ELF st_other field for function symbol table entries.
1 ; For microMIPS value should be equal to STO_MIPS_MICROMIPS.
2
3 ; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips %s \
4 ; RUN: -o - | FileCheck %s
5
6 define i32 @main() nounwind {
7 entry:
8 ret i32 0
9 }
10
11 ; CHECK: .set micromips
12 ; CHECK: main: