@@ -88,8 +88,8 @@ define i32 @not_sdiv_zext_small_divisor(i8 %x) {
88
88
ret i32 %div
89
89
}
90
90
91
- define i32 @sdiv_quotient_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
92
- ; CHECK-LABEL: @sdiv_quotient_known_smaller_than_pos_divisor_clear_bits (
91
+ define i32 @sdiv_dividend_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
92
+ ; CHECK-LABEL: @sdiv_dividend_known_smaller_than_pos_divisor_clear_bits (
93
93
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
94
94
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[AND]], 254
95
95
; CHECK-NEXT: ret i32 [[DIV]]
@@ -99,8 +99,8 @@ define i32 @sdiv_quotient_known_smaller_than_pos_divisor_clear_bits(i32 %x) {
99
99
ret i32 %div
100
100
}
101
101
102
- define i32 @not_sdiv_quotient_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
103
- ; CHECK-LABEL: @not_sdiv_quotient_known_smaller_than_pos_divisor_clear_bits (
102
+ define i32 @not_sdiv_dividend_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
103
+ ; CHECK-LABEL: @not_sdiv_dividend_known_smaller_than_pos_divisor_clear_bits (
104
104
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
105
105
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[AND]], 253
106
106
; CHECK-NEXT: ret i32 [[DIV]]
@@ -110,8 +110,8 @@ define i32 @not_sdiv_quotient_known_smaller_than_pos_divisor_clear_bits(i32 %x)
110
110
ret i32 %div
111
111
}
112
112
113
- define i32 @sdiv_quotient_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
114
- ; CHECK-LABEL: @sdiv_quotient_known_smaller_than_neg_divisor_clear_bits (
113
+ define i32 @sdiv_dividend_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
114
+ ; CHECK-LABEL: @sdiv_dividend_known_smaller_than_neg_divisor_clear_bits (
115
115
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
116
116
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[AND]], -254
117
117
; CHECK-NEXT: ret i32 [[DIV]]
@@ -121,8 +121,8 @@ define i32 @sdiv_quotient_known_smaller_than_neg_divisor_clear_bits(i32 %x) {
121
121
ret i32 %div
122
122
}
123
123
124
- define i32 @not_sdiv_quotient_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
125
- ; CHECK-LABEL: @not_sdiv_quotient_known_smaller_than_neg_divisor_clear_bits (
124
+ define i32 @not_sdiv_dividend_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
125
+ ; CHECK-LABEL: @not_sdiv_dividend_known_smaller_than_neg_divisor_clear_bits (
126
126
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
127
127
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[AND]], -253
128
128
; CHECK-NEXT: ret i32 [[DIV]]
@@ -132,8 +132,8 @@ define i32 @not_sdiv_quotient_known_smaller_than_neg_divisor_clear_bits(i32 %x)
132
132
ret i32 %div
133
133
}
134
134
135
- define i32 @sdiv_quotient_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
136
- ; CHECK-LABEL: @sdiv_quotient_known_smaller_than_pos_divisor_set_bits (
135
+ define i32 @sdiv_dividend_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
136
+ ; CHECK-LABEL: @sdiv_dividend_known_smaller_than_pos_divisor_set_bits (
137
137
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
138
138
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[OR]], 254
139
139
; CHECK-NEXT: ret i32 [[DIV]]
@@ -143,8 +143,8 @@ define i32 @sdiv_quotient_known_smaller_than_pos_divisor_set_bits(i32 %x) {
143
143
ret i32 %div
144
144
}
145
145
146
- define i32 @not_sdiv_quotient_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
147
- ; CHECK-LABEL: @not_sdiv_quotient_known_smaller_than_pos_divisor_set_bits (
146
+ define i32 @not_sdiv_dividend_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
147
+ ; CHECK-LABEL: @not_sdiv_dividend_known_smaller_than_pos_divisor_set_bits (
148
148
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
149
149
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[OR]], 253
150
150
; CHECK-NEXT: ret i32 [[DIV]]
@@ -154,8 +154,8 @@ define i32 @not_sdiv_quotient_known_smaller_than_pos_divisor_set_bits(i32 %x) {
154
154
ret i32 %div
155
155
}
156
156
157
- define i32 @sdiv_quotient_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
158
- ; CHECK-LABEL: @sdiv_quotient_known_smaller_than_neg_divisor_set_bits (
157
+ define i32 @sdiv_dividend_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
158
+ ; CHECK-LABEL: @sdiv_dividend_known_smaller_than_neg_divisor_set_bits (
159
159
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
160
160
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[OR]], -254
161
161
; CHECK-NEXT: ret i32 [[DIV]]
@@ -165,8 +165,8 @@ define i32 @sdiv_quotient_known_smaller_than_neg_divisor_set_bits(i32 %x) {
165
165
ret i32 %div
166
166
}
167
167
168
- define i32 @not_sdiv_quotient_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
169
- ; CHECK-LABEL: @not_sdiv_quotient_known_smaller_than_neg_divisor_set_bits (
168
+ define i32 @not_sdiv_dividend_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
169
+ ; CHECK-LABEL: @not_sdiv_dividend_known_smaller_than_neg_divisor_set_bits (
170
170
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
171
171
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[OR]], -253
172
172
; CHECK-NEXT: ret i32 [[DIV]]
@@ -264,8 +264,8 @@ define i32 @not_srem_zext_small_divisor(i8 %x) {
264
264
ret i32 %rem
265
265
}
266
266
267
- define i32 @srem_quotient_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
268
- ; CHECK-LABEL: @srem_quotient_known_smaller_than_pos_divisor_clear_bits (
267
+ define i32 @srem_dividend_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
268
+ ; CHECK-LABEL: @srem_dividend_known_smaller_than_pos_divisor_clear_bits (
269
269
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
270
270
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[AND]], 254
271
271
; CHECK-NEXT: ret i32 [[REM]]
@@ -275,8 +275,8 @@ define i32 @srem_quotient_known_smaller_than_pos_divisor_clear_bits(i32 %x) {
275
275
ret i32 %rem
276
276
}
277
277
278
- define i32 @not_srem_quotient_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
279
- ; CHECK-LABEL: @not_srem_quotient_known_smaller_than_pos_divisor_clear_bits (
278
+ define i32 @not_srem_dividend_known_smaller_than_pos_divisor_clear_bits (i32 %x ) {
279
+ ; CHECK-LABEL: @not_srem_dividend_known_smaller_than_pos_divisor_clear_bits (
280
280
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
281
281
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[AND]], 253
282
282
; CHECK-NEXT: ret i32 [[REM]]
@@ -286,8 +286,8 @@ define i32 @not_srem_quotient_known_smaller_than_pos_divisor_clear_bits(i32 %x)
286
286
ret i32 %rem
287
287
}
288
288
289
- define i32 @srem_quotient_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
290
- ; CHECK-LABEL: @srem_quotient_known_smaller_than_neg_divisor_clear_bits (
289
+ define i32 @srem_dividend_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
290
+ ; CHECK-LABEL: @srem_dividend_known_smaller_than_neg_divisor_clear_bits (
291
291
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
292
292
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[AND]], -254
293
293
; CHECK-NEXT: ret i32 [[REM]]
@@ -297,8 +297,8 @@ define i32 @srem_quotient_known_smaller_than_neg_divisor_clear_bits(i32 %x) {
297
297
ret i32 %rem
298
298
}
299
299
300
- define i32 @not_srem_quotient_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
301
- ; CHECK-LABEL: @not_srem_quotient_known_smaller_than_neg_divisor_clear_bits (
300
+ define i32 @not_srem_dividend_known_smaller_than_neg_divisor_clear_bits (i32 %x ) {
301
+ ; CHECK-LABEL: @not_srem_dividend_known_smaller_than_neg_divisor_clear_bits (
302
302
; CHECK-NEXT: [[AND:%.*]] = and i32 %x, 253
303
303
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[AND]], -253
304
304
; CHECK-NEXT: ret i32 [[REM]]
@@ -308,8 +308,8 @@ define i32 @not_srem_quotient_known_smaller_than_neg_divisor_clear_bits(i32 %x)
308
308
ret i32 %rem
309
309
}
310
310
311
- define i32 @srem_quotient_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
312
- ; CHECK-LABEL: @srem_quotient_known_smaller_than_pos_divisor_set_bits (
311
+ define i32 @srem_dividend_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
312
+ ; CHECK-LABEL: @srem_dividend_known_smaller_than_pos_divisor_set_bits (
313
313
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
314
314
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[OR]], 254
315
315
; CHECK-NEXT: ret i32 [[REM]]
@@ -319,8 +319,8 @@ define i32 @srem_quotient_known_smaller_than_pos_divisor_set_bits(i32 %x) {
319
319
ret i32 %rem
320
320
}
321
321
322
- define i32 @not_srem_quotient_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
323
- ; CHECK-LABEL: @not_srem_quotient_known_smaller_than_pos_divisor_set_bits (
322
+ define i32 @not_srem_dividend_known_smaller_than_pos_divisor_set_bits (i32 %x ) {
323
+ ; CHECK-LABEL: @not_srem_dividend_known_smaller_than_pos_divisor_set_bits (
324
324
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
325
325
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[OR]], 253
326
326
; CHECK-NEXT: ret i32 [[REM]]
@@ -330,8 +330,8 @@ define i32 @not_srem_quotient_known_smaller_than_pos_divisor_set_bits(i32 %x) {
330
330
ret i32 %rem
331
331
}
332
332
333
- define i32 @srem_quotient_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
334
- ; CHECK-LABEL: @srem_quotient_known_smaller_than_neg_divisor_set_bits (
333
+ define i32 @srem_dividend_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
334
+ ; CHECK-LABEL: @srem_dividend_known_smaller_than_neg_divisor_set_bits (
335
335
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
336
336
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[OR]], -254
337
337
; CHECK-NEXT: ret i32 [[REM]]
@@ -341,8 +341,8 @@ define i32 @srem_quotient_known_smaller_than_neg_divisor_set_bits(i32 %x) {
341
341
ret i32 %rem
342
342
}
343
343
344
- define i32 @not_srem_quotient_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
345
- ; CHECK-LABEL: @not_srem_quotient_known_smaller_than_neg_divisor_set_bits (
344
+ define i32 @not_srem_dividend_known_smaller_than_neg_divisor_set_bits (i32 %x ) {
345
+ ; CHECK-LABEL: @not_srem_dividend_known_smaller_than_neg_divisor_set_bits (
346
346
; CHECK-NEXT: [[OR:%.*]] = or i32 %x, -253
347
347
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[OR]], -253
348
348
; CHECK-NEXT: ret i32 [[REM]]
0 commit comments