llvm.org GIT mirror llvm / 1e513e8
[ARM GlobalISel] Rename some inst selector tests. NFC Prepare to add support for extensions to types smaller than 32 bits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359767 91177308-0d34-0410-b5e6-96231b3b80d8 Diana Picus 8 months ago
2 changed file(s) with 49 addition(s) and 49 deletion(s). Raw diff Collapse all Expand all
0 # RUN: llc -O0 -mtriple arm-- -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
11 --- |
2 define void @test_trunc_and_zext_s1() { ret void }
3 define void @test_trunc_and_sext_s1() { ret void }
4 define void @test_trunc_and_sext_s8() { ret void }
5 define void @test_trunc_and_zext_s16() { ret void }
6 define void @test_trunc_and_anyext_s8() { ret void }
7 define void @test_trunc_and_anyext_s16() { ret void }
2 define void @test_trunc_and_zext_s1_to_s32() { ret void }
3 define void @test_trunc_and_sext_s1_to_s32() { ret void }
4 define void @test_trunc_and_sext_s8_to_s32() { ret void }
5 define void @test_trunc_and_zext_s16_to_s32() { ret void }
6 define void @test_trunc_and_anyext_s8_to_s32() { ret void }
7 define void @test_trunc_and_anyext_s16_to_s32() { ret void }
88
99 define void @test_add_s32() { ret void }
1010 define void @test_add_fold_imm_s32() { ret void }
5353 attributes #2 = { "target-features"="+v6t2" }
5454 ...
5555 ---
56 name: test_trunc_and_zext_s1
57 # CHECK-LABEL: name: test_trunc_and_zext_s1
56 name: test_trunc_and_zext_s1_to_s32
57 # CHECK-LABEL: name: test_trunc_and_zext_s1_to_s32
5858 legalized: true
5959 regBankSelected: true
6060 selected: false
8282 ; CHECK: BX_RET 14, $noreg, implicit $r0
8383 ...
8484 ---
85 name: test_trunc_and_sext_s1
86 # CHECK-LABEL: name: test_trunc_and_sext_s1
85 name: test_trunc_and_sext_s1_to_s32
86 # CHECK-LABEL: name: test_trunc_and_sext_s1_to_s32
8787 legalized: true
8888 regBankSelected: true
8989 selected: false
112112 ; CHECK: BX_RET 14, $noreg, implicit $r0
113113 ...
114114 ---
115 name: test_trunc_and_sext_s8
116 # CHECK-LABEL: name: test_trunc_and_sext_s8
115 name: test_trunc_and_sext_s8_to_s32
116 # CHECK-LABEL: name: test_trunc_and_sext_s8_to_s32
117117 legalized: true
118118 regBankSelected: true
119119 selected: false
142142 ; CHECK: BX_RET 14, $noreg, implicit $r0
143143 ...
144144 ---
145 name: test_trunc_and_zext_s16
146 # CHECK-LABEL: name: test_trunc_and_zext_s16
145 name: test_trunc_and_zext_s16_to_s32
146 # CHECK-LABEL: name: test_trunc_and_zext_s16_to_s32
147147 legalized: true
148148 regBankSelected: true
149149 selected: false
172172 ; CHECK: BX_RET 14, $noreg, implicit $r0
173173 ...
174174 ---
175 name: test_trunc_and_anyext_s8
176 # CHECK-LABEL: name: test_trunc_and_anyext_s8
175 name: test_trunc_and_anyext_s8_to_s32
176 # CHECK-LABEL: name: test_trunc_and_anyext_s8_to_s32
177177 legalized: true
178178 regBankSelected: true
179179 selected: false
200200 ; CHECK: BX_RET 14, $noreg, implicit $r0
201201 ...
202202 ---
203 name: test_trunc_and_anyext_s16
204 # CHECK-LABEL: name: test_trunc_and_anyext_s16
203 name: test_trunc_and_anyext_s16_to_s32
204 # CHECK-LABEL: name: test_trunc_and_anyext_s16_to_s32
205205 legalized: true
206206 regBankSelected: true
207207 selected: false
0 # RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
11 --- |
2 define void @test_trunc_and_zext_s1() { ret void }
3 define void @test_trunc_and_sext_s1() { ret void }
4 define void @test_trunc_and_anyext_s1() { ret void }
5
6 define void @test_trunc_and_zext_s8() { ret void }
7 define void @test_trunc_and_sext_s8() { ret void }
8 define void @test_trunc_and_anyext_s8() { ret void }
9
10 define void @test_trunc_and_zext_s16() { ret void }
11 define void @test_trunc_and_sext_s16() { ret void }
12 define void @test_trunc_and_anyext_s16() { ret void }
13 ...
14 ---
15 name: test_trunc_and_zext_s1
16 # CHECK-LABEL: name: test_trunc_and_zext_s1
2 define void @test_trunc_and_zext_s1_to_s32() { ret void }
3 define void @test_trunc_and_sext_s1_to_s32() { ret void }
4 define void @test_trunc_and_anyext_s1_to_s32() { ret void }
5
6 define void @test_trunc_and_zext_s8_to_s32() { ret void }
7 define void @test_trunc_and_sext_s8_to_s32() { ret void }
8 define void @test_trunc_and_anyext_s8_to_s32() { ret void }
9
10 define void @test_trunc_and_zext_s16_to_s32() { ret void }
11 define void @test_trunc_and_sext_s16_to_s32() { ret void }
12 define void @test_trunc_and_anyext_s16_to_s32() { ret void }
13 ...
14 ---
15 name: test_trunc_and_zext_s1_to_s32
16 # CHECK-LABEL: name: test_trunc_and_zext_s1_to_s32
1717 legalized: true
1818 regBankSelected: true
1919 selected: false
4343 ; CHECK: BX_RET 14, $noreg, implicit $r0
4444 ...
4545 ---
46 name: test_trunc_and_sext_s1
47 # CHECK-LABEL: name: test_trunc_and_sext_s1
46 name: test_trunc_and_sext_s1_to_s32
47 # CHECK-LABEL: name: test_trunc_and_sext_s1_to_s32
4848 legalized: true
4949 regBankSelected: true
5050 selected: false
7575 ; CHECK: BX_RET 14, $noreg, implicit $r0
7676 ...
7777 ---
78 name: test_trunc_and_anyext_s1
79 # CHECK-LABEL: name: test_trunc_and_anyext_s1
78 name: test_trunc_and_anyext_s1_to_s32
79 # CHECK-LABEL: name: test_trunc_and_anyext_s1_to_s32
8080 legalized: true
8181 regBankSelected: true
8282 selected: false
104104 ; CHECK: BX_RET 14, $noreg, implicit $r0
105105 ...
106106 ---
107 name: test_trunc_and_zext_s8
108 # CHECK-LABEL: name: test_trunc_and_zext_s8
107 name: test_trunc_and_zext_s8_to_s32
108 # CHECK-LABEL: name: test_trunc_and_zext_s8_to_s32
109109 legalized: true
110110 regBankSelected: true
111111 selected: false
135135 ; CHECK: BX_RET 14, $noreg, implicit $r0
136136 ...
137137 ---
138 name: test_trunc_and_sext_s8
139 # CHECK-LABEL: name: test_trunc_and_sext_s8
138 name: test_trunc_and_sext_s8_to_s32
139 # CHECK-LABEL: name: test_trunc_and_sext_s8_to_s32
140140 legalized: true
141141 regBankSelected: true
142142 selected: false
166166 ; CHECK: BX_RET 14, $noreg, implicit $r0
167167 ...
168168 ---
169 name: test_trunc_and_anyext_s8
170 # CHECK-LABEL: name: test_trunc_and_anyext_s8
169 name: test_trunc_and_anyext_s8_to_s32
170 # CHECK-LABEL: name: test_trunc_and_anyext_s8_to_s32
171171 legalized: true
172172 regBankSelected: true
173173 selected: false
195195 ; CHECK: BX_RET 14, $noreg, implicit $r0
196196 ...
197197 ---
198 name: test_trunc_and_zext_s16
199 # CHECK-LABEL: name: test_trunc_and_zext_s16
198 name: test_trunc_and_zext_s16_to_s32
199 # CHECK-LABEL: name: test_trunc_and_zext_s16_to_s32
200200 legalized: true
201201 regBankSelected: true
202202 selected: false
226226 ; CHECK: BX_RET 14, $noreg, implicit $r0
227227 ...
228228 ---
229 name: test_trunc_and_sext_s16
230 # CHECK-LABEL: name: test_trunc_and_sext_s16
229 name: test_trunc_and_sext_s16_to_s32
230 # CHECK-LABEL: name: test_trunc_and_sext_s16_to_s32
231231 legalized: true
232232 regBankSelected: true
233233 selected: false
257257 ; CHECK: BX_RET 14, $noreg, implicit $r0
258258 ...
259259 ---
260 name: test_trunc_and_anyext_s16
261 # CHECK-LABEL: name: test_trunc_and_anyext_s16
260 name: test_trunc_and_anyext_s16_to_s32
261 # CHECK-LABEL: name: test_trunc_and_anyext_s16_to_s32
262262 legalized: true
263263 regBankSelected: true
264264 selected: false