# Changeset View

Changeset View

# Standalone View

Standalone View

# test/Analysis/CostModel/ARM/cast.ll

Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Line(s) | 5 | define i32 @casts() { | |||
---|---|---|---|---|---|

259 | ; CHECK: Found an estimated cost of 2 for instruction: %r114 = fptoui <4 x float> undef to <4 x i16> | 259 | ; CHECK: Found an estimated cost of 2 for instruction: %r114 = fptoui <4 x float> undef to <4 x i16> | ||

260 | %r114 = fptoui <4 x float> undef to <4 x i16> | 260 | %r114 = fptoui <4 x float> undef to <4 x i16> | ||

261 | ; CHECK: Found an estimated cost of 2 for instruction: %r115 = fptosi <4 x float> undef to <4 x i16> | 261 | ; CHECK: Found an estimated cost of 2 for instruction: %r115 = fptosi <4 x float> undef to <4 x i16> | ||

262 | %r115 = fptosi <4 x float> undef to <4 x i16> | 262 | %r115 = fptosi <4 x float> undef to <4 x i16> | ||

263 | ; CHECK: Found an estimated cost of 1 for instruction: %r116 = fptoui <4 x float> undef to <4 x i32> | 263 | ; CHECK: Found an estimated cost of 1 for instruction: %r116 = fptoui <4 x float> undef to <4 x i32> | ||

264 | %r116 = fptoui <4 x float> undef to <4 x i32> | 264 | %r116 = fptoui <4 x float> undef to <4 x i32> | ||

265 | ; CHECK: Found an estimated cost of 1 for instruction: %r117 = fptosi <4 x float> undef to <4 x i32> | 265 | ; CHECK: Found an estimated cost of 1 for instruction: %r117 = fptosi <4 x float> undef to <4 x i32> | ||

266 | %r117 = fptosi <4 x float> undef to <4 x i32> | 266 | %r117 = fptosi <4 x float> undef to <4 x i32> | ||

267 | ; CHECK: Found an estimated cost of 64 for instruction: %r118 = fptoui <4 x float> undef to <4 x i64> | 267 | ; CHECK: Found an estimated cost of 65 for instruction: %r118 = fptoui <4 x float> undef to <4 x i64> | ||

arsenm: LGTM, but it looks to me like this should be adding 0, so not increasing by 1? | |||||

mkuperAuthorUnsubmitted Not Done ReplyGenerally, with the new formula, it makes sense to have costs like 2 * 32 + 1, so I didn't pay too much attention to those little changes (what concerned me more were the big drops e.g. 64 -> 11 on line 326). But you're right, I need to verify that this is really reasonable and not some unexpected artifact. mkuper: Generally, with the new formula, it makes sense to have costs like 2 * 32 + 1, so I didn't pay… | |||||

mkuperAuthorUnsubmitted Not Done ReplySo it mostly makes sense. mkuper: So it mostly makes sense.
This used to be evaluated as fully scalarizing, with a per-element… | |||||

268 | %r118 = fptoui <4 x float> undef to <4 x i64> | 268 | %r118 = fptoui <4 x float> undef to <4 x i64> | ||

269 | ; CHECK: Found an estimated cost of 64 for instruction: %r119 = fptosi <4 x float> undef to <4 x i64> | 269 | ; CHECK: Found an estimated cost of 65 for instruction: %r119 = fptosi <4 x float> undef to <4 x i64> | ||

270 | %r119 = fptosi <4 x float> undef to <4 x i64> | 270 | %r119 = fptosi <4 x float> undef to <4 x i64> | ||

271 | 271 | | |||

272 | ; CHECK: Found an estimated cost of 32 for instruction: %r120 = fptoui <4 x double> undef to <4 x i1> | 272 | ; CHECK: Found an estimated cost of 33 for instruction: %r120 = fptoui <4 x double> undef to <4 x i1> | ||

273 | %r120 = fptoui <4 x double> undef to <4 x i1> | 273 | %r120 = fptoui <4 x double> undef to <4 x i1> | ||

274 | ; CHECK: Found an estimated cost of 32 for instruction: %r121 = fptosi <4 x double> undef to <4 x i1> | 274 | ; CHECK: Found an estimated cost of 33 for instruction: %r121 = fptosi <4 x double> undef to <4 x i1> | ||

275 | %r121 = fptosi <4 x double> undef to <4 x i1> | 275 | %r121 = fptosi <4 x double> undef to <4 x i1> | ||

276 | ; CHECK: Found an estimated cost of 32 for instruction: %r122 = fptoui <4 x double> undef to <4 x i8> | 276 | ; CHECK: Found an estimated cost of 33 for instruction: %r122 = fptoui <4 x double> undef to <4 x i8> | ||

277 | %r122 = fptoui <4 x double> undef to <4 x i8> | 277 | %r122 = fptoui <4 x double> undef to <4 x i8> | ||

278 | ; CHECK: Found an estimated cost of 32 for instruction: %r123 = fptosi <4 x double> undef to <4 x i8> | 278 | ; CHECK: Found an estimated cost of 33 for instruction: %r123 = fptosi <4 x double> undef to <4 x i8> | ||

279 | %r123 = fptosi <4 x double> undef to <4 x i8> | 279 | %r123 = fptosi <4 x double> undef to <4 x i8> | ||

280 | ; CHECK: Found an estimated cost of 32 for instruction: %r124 = fptoui <4 x double> undef to <4 x i16> | 280 | ; CHECK: Found an estimated cost of 33 for instruction: %r124 = fptoui <4 x double> undef to <4 x i16> | ||

281 | %r124 = fptoui <4 x double> undef to <4 x i16> | 281 | %r124 = fptoui <4 x double> undef to <4 x i16> | ||

282 | ; CHECK: Found an estimated cost of 32 for instruction: %r125 = fptosi <4 x double> undef to <4 x i16> | 282 | ; CHECK: Found an estimated cost of 33 for instruction: %r125 = fptosi <4 x double> undef to <4 x i16> | ||

283 | %r125 = fptosi <4 x double> undef to <4 x i16> | 283 | %r125 = fptosi <4 x double> undef to <4 x i16> | ||

284 | ; CHECK: Found an estimated cost of 32 for instruction: %r126 = fptoui <4 x double> undef to <4 x i32> | 284 | ; CHECK: Found an estimated cost of 5 for instruction: %r126 = fptoui <4 x double> undef to <4 x i32> | ||

285 | %r126 = fptoui <4 x double> undef to <4 x i32> | 285 | %r126 = fptoui <4 x double> undef to <4 x i32> | ||

286 | ; CHECK: Found an estimated cost of 32 for instruction: %r127 = fptosi <4 x double> undef to <4 x i32> | 286 | ; CHECK: Found an estimated cost of 5 for instruction: %r127 = fptosi <4 x double> undef to <4 x i32> | ||

287 | %r127 = fptosi <4 x double> undef to <4 x i32> | 287 | %r127 = fptosi <4 x double> undef to <4 x i32> | ||

288 | ; CHECK: Found an estimated cost of 64 for instruction: %r128 = fptoui <4 x double> undef to <4 x i64> | 288 | ; CHECK: Found an estimated cost of 65 for instruction: %r128 = fptoui <4 x double> undef to <4 x i64> | ||

289 | %r128 = fptoui <4 x double> undef to <4 x i64> | 289 | %r128 = fptoui <4 x double> undef to <4 x i64> | ||

290 | ; CHECK: Found an estimated cost of 64 for instruction: %r129 = fptosi <4 x double> undef to <4 x i64> | 290 | ; CHECK: Found an estimated cost of 65 for instruction: %r129 = fptosi <4 x double> undef to <4 x i64> | ||

291 | %r129 = fptosi <4 x double> undef to <4 x i64> | 291 | %r129 = fptosi <4 x double> undef to <4 x i64> | ||

292 | 292 | | |||

293 | ; CHECK: Found an estimated cost of 64 for instruction: %r130 = fptoui <8 x float> undef to <8 x i1> | 293 | ; CHECK: Found an estimated cost of 65 for instruction: %r130 = fptoui <8 x float> undef to <8 x i1> | ||

294 | %r130 = fptoui <8 x float> undef to <8 x i1> | 294 | %r130 = fptoui <8 x float> undef to <8 x i1> | ||

295 | ; CHECK: Found an estimated cost of 64 for instruction: %r131 = fptosi <8 x float> undef to <8 x i1> | 295 | ; CHECK: Found an estimated cost of 65 for instruction: %r131 = fptosi <8 x float> undef to <8 x i1> | ||

296 | %r131 = fptosi <8 x float> undef to <8 x i1> | 296 | %r131 = fptosi <8 x float> undef to <8 x i1> | ||

297 | ; CHECK: Found an estimated cost of 64 for instruction: %r132 = fptoui <8 x float> undef to <8 x i8> | 297 | ; CHECK: Found an estimated cost of 7 for instruction: %r132 = fptoui <8 x float> undef to <8 x i8> | ||

298 | %r132 = fptoui <8 x float> undef to <8 x i8> | 298 | %r132 = fptoui <8 x float> undef to <8 x i8> | ||

299 | ; CHECK: Found an estimated cost of 64 for instruction: %r133 = fptosi <8 x float> undef to <8 x i8> | 299 | ; CHECK: Found an estimated cost of 7 for instruction: %r133 = fptosi <8 x float> undef to <8 x i8> | ||

300 | %r133 = fptosi <8 x float> undef to <8 x i8> | 300 | %r133 = fptosi <8 x float> undef to <8 x i8> | ||

301 | ; CHECK: Found an estimated cost of 4 for instruction: %r134 = fptoui <8 x float> undef to <8 x i16> | 301 | ; CHECK: Found an estimated cost of 4 for instruction: %r134 = fptoui <8 x float> undef to <8 x i16> | ||

302 | %r134 = fptoui <8 x float> undef to <8 x i16> | 302 | %r134 = fptoui <8 x float> undef to <8 x i16> | ||

303 | ; CHECK: Found an estimated cost of 4 for instruction: %r135 = fptosi <8 x float> undef to <8 x i16> | 303 | ; CHECK: Found an estimated cost of 4 for instruction: %r135 = fptosi <8 x float> undef to <8 x i16> | ||

304 | %r135 = fptosi <8 x float> undef to <8 x i16> | 304 | %r135 = fptosi <8 x float> undef to <8 x i16> | ||

305 | ; CHECK: Found an estimated cost of 2 for instruction: %r136 = fptoui <8 x float> undef to <8 x i32> | 305 | ; CHECK: Found an estimated cost of 2 for instruction: %r136 = fptoui <8 x float> undef to <8 x i32> | ||

306 | %r136 = fptoui <8 x float> undef to <8 x i32> | 306 | %r136 = fptoui <8 x float> undef to <8 x i32> | ||

307 | ; CHECK: Found an estimated cost of 2 for instruction: %r137 = fptosi <8 x float> undef to <8 x i32> | 307 | ; CHECK: Found an estimated cost of 2 for instruction: %r137 = fptosi <8 x float> undef to <8 x i32> | ||

308 | %r137 = fptosi <8 x float> undef to <8 x i32> | 308 | %r137 = fptosi <8 x float> undef to <8 x i32> | ||

309 | ; CHECK: Found an estimated cost of 128 for instruction: %r138 = fptoui <8 x float> undef to <8 x i64> | 309 | ; CHECK: Found an estimated cost of 131 for instruction: %r138 = fptoui <8 x float> undef to <8 x i64> | ||

310 | %r138 = fptoui <8 x float> undef to <8 x i64> | 310 | %r138 = fptoui <8 x float> undef to <8 x i64> | ||

311 | ; CHECK: Found an estimated cost of 128 for instruction: %r139 = fptosi <8 x float> undef to <8 x i64> | 311 | ; CHECK: Found an estimated cost of 131 for instruction: %r139 = fptosi <8 x float> undef to <8 x i64> | ||

312 | %r139 = fptosi <8 x float> undef to <8 x i64> | 312 | %r139 = fptosi <8 x float> undef to <8 x i64> | ||

313 | 313 | | |||

314 | ; CHECK: Found an estimated cost of 64 for instruction: %r140 = fptoui <8 x double> undef to <8 x i1> | 314 | ; CHECK: Found an estimated cost of 67 for instruction: %r140 = fptoui <8 x double> undef to <8 x i1> | ||

315 | %r140 = fptoui <8 x double> undef to <8 x i1> | 315 | %r140 = fptoui <8 x double> undef to <8 x i1> | ||

316 | ; CHECK: Found an estimated cost of 64 for instruction: %r141 = fptosi <8 x double> undef to <8 x i1> | 316 | ; CHECK: Found an estimated cost of 67 for instruction: %r141 = fptosi <8 x double> undef to <8 x i1> | ||

317 | %r141 = fptosi <8 x double> undef to <8 x i1> | 317 | %r141 = fptosi <8 x double> undef to <8 x i1> | ||

318 | ; CHECK: Found an estimated cost of 64 for instruction: %r142 = fptoui <8 x double> undef to <8 x i8> | 318 | ; CHECK: Found an estimated cost of 67 for instruction: %r142 = fptoui <8 x double> undef to <8 x i8> | ||

319 | %r142 = fptoui <8 x double> undef to <8 x i8> | 319 | %r142 = fptoui <8 x double> undef to <8 x i8> | ||

320 | ; CHECK: Found an estimated cost of 64 for instruction: %r143 = fptosi <8 x double> undef to <8 x i8> | 320 | ; CHECK: Found an estimated cost of 67 for instruction: %r143 = fptosi <8 x double> undef to <8 x i8> | ||

321 | %r143 = fptosi <8 x double> undef to <8 x i8> | 321 | %r143 = fptosi <8 x double> undef to <8 x i8> | ||

322 | ; CHECK: Found an estimated cost of 64 for instruction: %r144 = fptoui <8 x double> undef to <8 x i16> | 322 | ; CHECK: Found an estimated cost of 67 for instruction: %r144 = fptoui <8 x double> undef to <8 x i16> | ||

323 | %r144 = fptoui <8 x double> undef to <8 x i16> | 323 | %r144 = fptoui <8 x double> undef to <8 x i16> | ||

324 | ; CHECK: Found an estimated cost of 64 for instruction: %r145 = fptosi <8 x double> undef to <8 x i16> | 324 | ; CHECK: Found an estimated cost of 67 for instruction: %r145 = fptosi <8 x double> undef to <8 x i16> | ||

325 | %r145 = fptosi <8 x double> undef to <8 x i16> | 325 | %r145 = fptosi <8 x double> undef to <8 x i16> | ||

326 | ; CHECK: Found an estimated cost of 64 for instruction: %r146 = fptoui <8 x double> undef to <8 x i32> | 326 | ; CHECK: Found an estimated cost of 11 for instruction: %r146 = fptoui <8 x double> undef to <8 x i32> | ||

327 | %r146 = fptoui <8 x double> undef to <8 x i32> | 327 | %r146 = fptoui <8 x double> undef to <8 x i32> | ||

328 | ; CHECK: Found an estimated cost of 64 for instruction: %r147 = fptosi <8 x double> undef to <8 x i32> | 328 | ; CHECK: Found an estimated cost of 11 for instruction: %r147 = fptosi <8 x double> undef to <8 x i32> | ||

329 | %r147 = fptosi <8 x double> undef to <8 x i32> | 329 | %r147 = fptosi <8 x double> undef to <8 x i32> | ||

330 | ; CHECK: Found an estimated cost of 128 for instruction: %r148 = fptoui <8 x double> undef to <8 x i64> | 330 | ; CHECK: Found an estimated cost of 131 for instruction: %r148 = fptoui <8 x double> undef to <8 x i64> | ||

331 | %r148 = fptoui <8 x double> undef to <8 x i64> | 331 | %r148 = fptoui <8 x double> undef to <8 x i64> | ||

332 | ; CHECK: Found an estimated cost of 128 for instruction: %r149 = fptosi <8 x double> undef to <8 x i64> | 332 | ; CHECK: Found an estimated cost of 131 for instruction: %r149 = fptosi <8 x double> undef to <8 x i64> | ||

333 | %r149 = fptosi <8 x double> undef to <8 x i64> | 333 | %r149 = fptosi <8 x double> undef to <8 x i64> | ||

334 | 334 | | |||

335 | ; CHECK: Found an estimated cost of 128 for instruction: %r150 = fptoui <16 x float> undef to <16 x i1> | 335 | ; CHECK: Found an estimated cost of 131 for instruction: %r150 = fptoui <16 x float> undef to <16 x i1> | ||

336 | %r150 = fptoui <16 x float> undef to <16 x i1> | 336 | %r150 = fptoui <16 x float> undef to <16 x i1> | ||

337 | ; CHECK: Found an estimated cost of 128 for instruction: %r151 = fptosi <16 x float> undef to <16 x i1> | 337 | ; CHECK: Found an estimated cost of 131 for instruction: %r151 = fptosi <16 x float> undef to <16 x i1> | ||

338 | %r151 = fptosi <16 x float> undef to <16 x i1> | 338 | %r151 = fptosi <16 x float> undef to <16 x i1> | ||

339 | ; CHECK: Found an estimated cost of 128 for instruction: %r152 = fptoui <16 x float> undef to <16 x i8> | 339 | ; CHECK: Found an estimated cost of 15 for instruction: %r152 = fptoui <16 x float> undef to <16 x i8> | ||

340 | %r152 = fptoui <16 x float> undef to <16 x i8> | 340 | %r152 = fptoui <16 x float> undef to <16 x i8> | ||

341 | ; CHECK: Found an estimated cost of 128 for instruction: %r153 = fptosi <16 x float> undef to <16 x i8> | 341 | ; CHECK: Found an estimated cost of 15 for instruction: %r153 = fptosi <16 x float> undef to <16 x i8> | ||

342 | %r153 = fptosi <16 x float> undef to <16 x i8> | 342 | %r153 = fptosi <16 x float> undef to <16 x i8> | ||

343 | ; CHECK: Found an estimated cost of 8 for instruction: %r154 = fptoui <16 x float> undef to <16 x i16> | 343 | ; CHECK: Found an estimated cost of 8 for instruction: %r154 = fptoui <16 x float> undef to <16 x i16> | ||

344 | %r154 = fptoui <16 x float> undef to <16 x i16> | 344 | %r154 = fptoui <16 x float> undef to <16 x i16> | ||

345 | ; CHECK: Found an estimated cost of 8 for instruction: %r155 = fptosi <16 x float> undef to <16 x i16> | 345 | ; CHECK: Found an estimated cost of 8 for instruction: %r155 = fptosi <16 x float> undef to <16 x i16> | ||

346 | %r155 = fptosi <16 x float> undef to <16 x i16> | 346 | %r155 = fptosi <16 x float> undef to <16 x i16> | ||

347 | ; CHECK: Found an estimated cost of 4 for instruction: %r156 = fptoui <16 x float> undef to <16 x i32> | 347 | ; CHECK: Found an estimated cost of 4 for instruction: %r156 = fptoui <16 x float> undef to <16 x i32> | ||

348 | %r156 = fptoui <16 x float> undef to <16 x i32> | 348 | %r156 = fptoui <16 x float> undef to <16 x i32> | ||

349 | ; CHECK: Found an estimated cost of 4 for instruction: %r157 = fptosi <16 x float> undef to <16 x i32> | 349 | ; CHECK: Found an estimated cost of 4 for instruction: %r157 = fptosi <16 x float> undef to <16 x i32> | ||

350 | %r157 = fptosi <16 x float> undef to <16 x i32> | 350 | %r157 = fptosi <16 x float> undef to <16 x i32> | ||

351 | ; CHECK: Found an estimated cost of 256 for instruction: %r158 = fptoui <16 x float> undef to <16 x i64> | 351 | ; CHECK: Found an estimated cost of 263 for instruction: %r158 = fptoui <16 x float> undef to <16 x i64> | ||

352 | %r158 = fptoui <16 x float> undef to <16 x i64> | 352 | %r158 = fptoui <16 x float> undef to <16 x i64> | ||

353 | ; CHECK: Found an estimated cost of 256 for instruction: %r159 = fptosi <16 x float> undef to <16 x i64> | 353 | ; CHECK: Found an estimated cost of 263 for instruction: %r159 = fptosi <16 x float> undef to <16 x i64> | ||

354 | %r159 = fptosi <16 x float> undef to <16 x i64> | 354 | %r159 = fptosi <16 x float> undef to <16 x i64> | ||

355 | 355 | | |||

356 | ; CHECK: Found an estimated cost of 128 for instruction: %r160 = fptoui <16 x double> undef to <16 x i1> | 356 | ; CHECK: Found an estimated cost of 135 for instruction: %r160 = fptoui <16 x double> undef to <16 x i1> | ||

357 | %r160 = fptoui <16 x double> undef to <16 x i1> | 357 | %r160 = fptoui <16 x double> undef to <16 x i1> | ||

358 | ; CHECK: Found an estimated cost of 128 for instruction: %r161 = fptosi <16 x double> undef to <16 x i1> | 358 | ; CHECK: Found an estimated cost of 135 for instruction: %r161 = fptosi <16 x double> undef to <16 x i1> | ||

359 | %r161 = fptosi <16 x double> undef to <16 x i1> | 359 | %r161 = fptosi <16 x double> undef to <16 x i1> | ||

360 | ; CHECK: Found an estimated cost of 128 for instruction: %r162 = fptoui <16 x double> undef to <16 x i8> | 360 | ; CHECK: Found an estimated cost of 135 for instruction: %r162 = fptoui <16 x double> undef to <16 x i8> | ||

361 | %r162 = fptoui <16 x double> undef to <16 x i8> | 361 | %r162 = fptoui <16 x double> undef to <16 x i8> | ||

362 | ; CHECK: Found an estimated cost of 128 for instruction: %r163 = fptosi <16 x double> undef to <16 x i8> | 362 | ; CHECK: Found an estimated cost of 135 for instruction: %r163 = fptosi <16 x double> undef to <16 x i8> | ||

363 | %r163 = fptosi <16 x double> undef to <16 x i8> | 363 | %r163 = fptosi <16 x double> undef to <16 x i8> | ||

364 | ; CHECK: Found an estimated cost of 128 for instruction: %r164 = fptoui <16 x double> undef to <16 x i16> | 364 | ; CHECK: Found an estimated cost of 135 for instruction: %r164 = fptoui <16 x double> undef to <16 x i16> | ||

365 | %r164 = fptoui <16 x double> undef to <16 x i16> | 365 | %r164 = fptoui <16 x double> undef to <16 x i16> | ||

366 | ; CHECK: Found an estimated cost of 128 for instruction: %r165 = fptosi <16 x double> undef to <16 x i16> | 366 | ; CHECK: Found an estimated cost of 135 for instruction: %r165 = fptosi <16 x double> undef to <16 x i16> | ||

367 | %r165 = fptosi <16 x double> undef to <16 x i16> | 367 | %r165 = fptosi <16 x double> undef to <16 x i16> | ||

368 | ; CHECK: Found an estimated cost of 128 for instruction: %r166 = fptoui <16 x double> undef to <16 x i32> | 368 | ; CHECK: Found an estimated cost of 23 for instruction: %r166 = fptoui <16 x double> undef to <16 x i32> | ||

369 | %r166 = fptoui <16 x double> undef to <16 x i32> | 369 | %r166 = fptoui <16 x double> undef to <16 x i32> | ||

370 | ; CHECK: Found an estimated cost of 128 for instruction: %r167 = fptosi <16 x double> undef to <16 x i32> | 370 | ; CHECK: Found an estimated cost of 23 for instruction: %r167 = fptosi <16 x double> undef to <16 x i32> | ||

371 | %r167 = fptosi <16 x double> undef to <16 x i32> | 371 | %r167 = fptosi <16 x double> undef to <16 x i32> | ||

372 | ; CHECK: Found an estimated cost of 256 for instruction: %r168 = fptoui <16 x double> undef to <16 x i64> | 372 | ; CHECK: Found an estimated cost of 263 for instruction: %r168 = fptoui <16 x double> undef to <16 x i64> | ||

373 | %r168 = fptoui <16 x double> undef to <16 x i64> | 373 | %r168 = fptoui <16 x double> undef to <16 x i64> | ||

374 | ; CHECK: Found an estimated cost of 256 for instruction: %r169 = fptosi <16 x double> undef to <16 x i64> | 374 | ; CHECK: Found an estimated cost of 263 for instruction: %r169 = fptosi <16 x double> undef to <16 x i64> | ||

375 | %r169 = fptosi <16 x double> undef to <16 x i64> | 375 | %r169 = fptosi <16 x double> undef to <16 x i64> | ||

376 | 376 | | |||

377 | ; CHECK: Found an estimated cost of 12 for instruction: %r170 = uitofp <2 x i1> undef to <2 x float> | 377 | ; CHECK: Found an estimated cost of 12 for instruction: %r170 = uitofp <2 x i1> undef to <2 x float> | ||

378 | %r170 = uitofp <2 x i1> undef to <2 x float> | 378 | %r170 = uitofp <2 x i1> undef to <2 x float> | ||

379 | ; CHECK: Found an estimated cost of 12 for instruction: %r171 = sitofp <2 x i1> undef to <2 x float> | 379 | ; CHECK: Found an estimated cost of 12 for instruction: %r171 = sitofp <2 x i1> undef to <2 x float> | ||

380 | %r171 = sitofp <2 x i1> undef to <2 x float> | 380 | %r171 = sitofp <2 x i1> undef to <2 x float> | ||

381 | ; CHECK: Found an estimated cost of 3 for instruction: %r172 = uitofp <2 x i8> undef to <2 x float> | 381 | ; CHECK: Found an estimated cost of 3 for instruction: %r172 = uitofp <2 x i8> undef to <2 x float> | ||

382 | %r172 = uitofp <2 x i8> undef to <2 x float> | 382 | %r172 = uitofp <2 x i8> undef to <2 x float> | ||

▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||

427 | ; CHECK: Found an estimated cost of 2 for instruction: %r194 = uitofp <4 x i16> undef to <4 x float> | 427 | ; CHECK: Found an estimated cost of 2 for instruction: %r194 = uitofp <4 x i16> undef to <4 x float> | ||

428 | %r194 = uitofp <4 x i16> undef to <4 x float> | 428 | %r194 = uitofp <4 x i16> undef to <4 x float> | ||

429 | ; CHECK: Found an estimated cost of 2 for instruction: %r195 = sitofp <4 x i16> undef to <4 x float> | 429 | ; CHECK: Found an estimated cost of 2 for instruction: %r195 = sitofp <4 x i16> undef to <4 x float> | ||

430 | %r195 = sitofp <4 x i16> undef to <4 x float> | 430 | %r195 = sitofp <4 x i16> undef to <4 x float> | ||

431 | ; CHECK: Found an estimated cost of 1 for instruction: %r196 = uitofp <4 x i32> undef to <4 x float> | 431 | ; CHECK: Found an estimated cost of 1 for instruction: %r196 = uitofp <4 x i32> undef to <4 x float> | ||

432 | %r196 = uitofp <4 x i32> undef to <4 x float> | 432 | %r196 = uitofp <4 x i32> undef to <4 x float> | ||

433 | ; CHECK: Found an estimated cost of 1 for instruction: %r197 = sitofp <4 x i32> undef to <4 x float> | 433 | ; CHECK: Found an estimated cost of 1 for instruction: %r197 = sitofp <4 x i32> undef to <4 x float> | ||

434 | %r197 = sitofp <4 x i32> undef to <4 x float> | 434 | %r197 = sitofp <4 x i32> undef to <4 x float> | ||

435 | ; CHECK: Found an estimated cost of 56 for instruction: %r198 = uitofp <4 x i64> undef to <4 x float> | 435 | ; CHECK: Found an estimated cost of 57 for instruction: %r198 = uitofp <4 x i64> undef to <4 x float> | ||

436 | %r198 = uitofp <4 x i64> undef to <4 x float> | 436 | %r198 = uitofp <4 x i64> undef to <4 x float> | ||

437 | ; CHECK: Found an estimated cost of 56 for instruction: %r199 = sitofp <4 x i64> undef to <4 x float> | 437 | ; CHECK: Found an estimated cost of 57 for instruction: %r199 = sitofp <4 x i64> undef to <4 x float> | ||

438 | %r199 = sitofp <4 x i64> undef to <4 x float> | 438 | %r199 = sitofp <4 x i64> undef to <4 x float> | ||

439 | 439 | | |||

440 | ; CHECK: Found an estimated cost of 16 for instruction: %r200 = uitofp <4 x i1> undef to <4 x double> | 440 | ; CHECK: Found an estimated cost of 17 for instruction: %r200 = uitofp <4 x i1> undef to <4 x double> | ||

441 | %r200 = uitofp <4 x i1> undef to <4 x double> | 441 | %r200 = uitofp <4 x i1> undef to <4 x double> | ||

442 | ; CHECK: Found an estimated cost of 16 for instruction: %r201 = sitofp <4 x i1> undef to <4 x double> | 442 | ; CHECK: Found an estimated cost of 17 for instruction: %r201 = sitofp <4 x i1> undef to <4 x double> | ||

443 | %r201 = sitofp <4 x i1> undef to <4 x double> | 443 | %r201 = sitofp <4 x i1> undef to <4 x double> | ||

444 | ; CHECK: Found an estimated cost of 16 for instruction: %r202 = uitofp <4 x i8> undef to <4 x double> | 444 | ; CHECK: Found an estimated cost of 9 for instruction: %r202 = uitofp <4 x i8> undef to <4 x double> | ||

445 | %r202 = uitofp <4 x i8> undef to <4 x double> | 445 | %r202 = uitofp <4 x i8> undef to <4 x double> | ||

446 | ; CHECK: Found an estimated cost of 16 for instruction: %r203 = sitofp <4 x i8> undef to <4 x double> | 446 | ; CHECK: Found an estimated cost of 9 for instruction: %r203 = sitofp <4 x i8> undef to <4 x double> | ||

447 | %r203 = sitofp <4 x i8> undef to <4 x double> | 447 | %r203 = sitofp <4 x i8> undef to <4 x double> | ||

448 | ; CHECK: Found an estimated cost of 16 for instruction: %r204 = uitofp <4 x i16> undef to <4 x double> | 448 | ; CHECK: Found an estimated cost of 7 for instruction: %r204 = uitofp <4 x i16> undef to <4 x double> | ||

449 | %r204 = uitofp <4 x i16> undef to <4 x double> | 449 | %r204 = uitofp <4 x i16> undef to <4 x double> | ||

450 | ; CHECK: Found an estimated cost of 16 for instruction: %r205 = sitofp <4 x i16> undef to <4 x double> | 450 | ; CHECK: Found an estimated cost of 7 for instruction: %r205 = sitofp <4 x i16> undef to <4 x double> | ||

451 | %r205 = sitofp <4 x i16> undef to <4 x double> | 451 | %r205 = sitofp <4 x i16> undef to <4 x double> | ||

452 | ; CHECK: Found an estimated cost of 16 for instruction: %r206 = uitofp <4 x i32> undef to <4 x double> | 452 | ; CHECK: Found an estimated cost of 5 for instruction: %r206 = uitofp <4 x i32> undef to <4 x double> | ||

453 | %r206 = uitofp <4 x i32> undef to <4 x double> | 453 | %r206 = uitofp <4 x i32> undef to <4 x double> | ||

454 | ; CHECK: Found an estimated cost of 16 for instruction: %r207 = sitofp <4 x i32> undef to <4 x double> | 454 | ; CHECK: Found an estimated cost of 5 for instruction: %r207 = sitofp <4 x i32> undef to <4 x double> | ||

455 | %r207 = sitofp <4 x i32> undef to <4 x double> | 455 | %r207 = sitofp <4 x i32> undef to <4 x double> | ||

456 | ; CHECK: Found an estimated cost of 48 for instruction: %r208 = uitofp <4 x i64> undef to <4 x double> | 456 | ; CHECK: Found an estimated cost of 49 for instruction: %r208 = uitofp <4 x i64> undef to <4 x double> | ||

457 | %r208 = uitofp <4 x i64> undef to <4 x double> | 457 | %r208 = uitofp <4 x i64> undef to <4 x double> | ||

458 | ; CHECK: Found an estimated cost of 48 for instruction: %r209 = sitofp <4 x i64> undef to <4 x double> | 458 | ; CHECK: Found an estimated cost of 49 for instruction: %r209 = sitofp <4 x i64> undef to <4 x double> | ||

459 | %r209 = sitofp <4 x i64> undef to <4 x double> | 459 | %r209 = sitofp <4 x i64> undef to <4 x double> | ||

460 | 460 | | |||

461 | ; CHECK: Found an estimated cost of 48 for instruction: %r210 = uitofp <8 x i1> undef to <8 x float> | 461 | ; CHECK: Found an estimated cost of 7 for instruction: %r210 = uitofp <8 x i1> undef to <8 x float> | ||

462 | %r210 = uitofp <8 x i1> undef to <8 x float> | 462 | %r210 = uitofp <8 x i1> undef to <8 x float> | ||

463 | ; CHECK: Found an estimated cost of 48 for instruction: %r211 = sitofp <8 x i1> undef to <8 x float> | 463 | ; CHECK: Found an estimated cost of 7 for instruction: %r211 = sitofp <8 x i1> undef to <8 x float> | ||

464 | %r211 = sitofp <8 x i1> undef to <8 x float> | 464 | %r211 = sitofp <8 x i1> undef to <8 x float> | ||

465 | ; CHECK: Found an estimated cost of 48 for instruction: %r212 = uitofp <8 x i8> undef to <8 x float> | 465 | ; CHECK: Found an estimated cost of 7 for instruction: %r212 = uitofp <8 x i8> undef to <8 x float> | ||

466 | %r212 = uitofp <8 x i8> undef to <8 x float> | 466 | %r212 = uitofp <8 x i8> undef to <8 x float> | ||

467 | ; CHECK: Found an estimated cost of 48 for instruction: %r213 = sitofp <8 x i8> undef to <8 x float> | 467 | ; CHECK: Found an estimated cost of 7 for instruction: %r213 = sitofp <8 x i8> undef to <8 x float> | ||

468 | %r213 = sitofp <8 x i8> undef to <8 x float> | 468 | %r213 = sitofp <8 x i8> undef to <8 x float> | ||

469 | ; CHECK: Found an estimated cost of 4 for instruction: %r214 = uitofp <8 x i16> undef to <8 x float> | 469 | ; CHECK: Found an estimated cost of 4 for instruction: %r214 = uitofp <8 x i16> undef to <8 x float> | ||

470 | %r214 = uitofp <8 x i16> undef to <8 x float> | 470 | %r214 = uitofp <8 x i16> undef to <8 x float> | ||

471 | ; CHECK: Found an estimated cost of 4 for instruction: %r215 = sitofp <8 x i16> undef to <8 x float> | 471 | ; CHECK: Found an estimated cost of 4 for instruction: %r215 = sitofp <8 x i16> undef to <8 x float> | ||

472 | %r215 = sitofp <8 x i16> undef to <8 x float> | 472 | %r215 = sitofp <8 x i16> undef to <8 x float> | ||

473 | ; CHECK: Found an estimated cost of 2 for instruction: %r216 = uitofp <8 x i32> undef to <8 x float> | 473 | ; CHECK: Found an estimated cost of 2 for instruction: %r216 = uitofp <8 x i32> undef to <8 x float> | ||

474 | %r216 = uitofp <8 x i32> undef to <8 x float> | 474 | %r216 = uitofp <8 x i32> undef to <8 x float> | ||

475 | ; CHECK: Found an estimated cost of 2 for instruction: %r217 = sitofp <8 x i32> undef to <8 x float> | 475 | ; CHECK: Found an estimated cost of 2 for instruction: %r217 = sitofp <8 x i32> undef to <8 x float> | ||

476 | %r217 = sitofp <8 x i32> undef to <8 x float> | 476 | %r217 = sitofp <8 x i32> undef to <8 x float> | ||

477 | ; CHECK: Found an estimated cost of 112 for instruction: %r218 = uitofp <8 x i64> undef to <8 x float> | 477 | ; CHECK: Found an estimated cost of 115 for instruction: %r218 = uitofp <8 x i64> undef to <8 x float> | ||

478 | %r218 = uitofp <8 x i64> undef to <8 x float> | 478 | %r218 = uitofp <8 x i64> undef to <8 x float> | ||

479 | ; CHECK: Found an estimated cost of 112 for instruction: %r219 = sitofp <8 x i64> undef to <8 x float> | 479 | ; CHECK: Found an estimated cost of 115 for instruction: %r219 = sitofp <8 x i64> undef to <8 x float> | ||

480 | %r219 = sitofp <8 x i64> undef to <8 x float> | 480 | %r219 = sitofp <8 x i64> undef to <8 x float> | ||

481 | 481 | | |||

482 | ; CHECK: Found an estimated cost of 32 for instruction: %r220 = uitofp <8 x i1> undef to <8 x double> | 482 | ; CHECK: Found an estimated cost of 35 for instruction: %r220 = uitofp <8 x i1> undef to <8 x double> | ||

483 | %r220 = uitofp <8 x i1> undef to <8 x double> | 483 | %r220 = uitofp <8 x i1> undef to <8 x double> | ||

484 | ; CHECK: Found an estimated cost of 32 for instruction: %r221 = sitofp <8 x i1> undef to <8 x double> | 484 | ; CHECK: Found an estimated cost of 35 for instruction: %r221 = sitofp <8 x i1> undef to <8 x double> | ||

485 | %r221 = sitofp <8 x i1> undef to <8 x double> | 485 | %r221 = sitofp <8 x i1> undef to <8 x double> | ||

486 | ; CHECK: Found an estimated cost of 32 for instruction: %r222 = uitofp <8 x i8> undef to <8 x double> | 486 | ; CHECK: Found an estimated cost of 19 for instruction: %r222 = uitofp <8 x i8> undef to <8 x double> | ||

487 | %r222 = uitofp <8 x i8> undef to <8 x double> | 487 | %r222 = uitofp <8 x i8> undef to <8 x double> | ||

488 | ; CHECK: Found an estimated cost of 32 for instruction: %r223 = sitofp <8 x i8> undef to <8 x double> | 488 | ; CHECK: Found an estimated cost of 19 for instruction: %r223 = sitofp <8 x i8> undef to <8 x double> | ||

489 | %r223 = sitofp <8 x i8> undef to <8 x double> | 489 | %r223 = sitofp <8 x i8> undef to <8 x double> | ||

490 | ; CHECK: Found an estimated cost of 32 for instruction: %r224 = uitofp <8 x i16> undef to <8 x double> | 490 | ; CHECK: Found an estimated cost of 15 for instruction: %r224 = uitofp <8 x i16> undef to <8 x double> | ||

491 | %r224 = uitofp <8 x i16> undef to <8 x double> | 491 | %r224 = uitofp <8 x i16> undef to <8 x double> | ||

492 | ; CHECK: Found an estimated cost of 32 for instruction: %r225 = sitofp <8 x i16> undef to <8 x double> | 492 | ; CHECK: Found an estimated cost of 15 for instruction: %r225 = sitofp <8 x i16> undef to <8 x double> | ||

493 | %r225 = sitofp <8 x i16> undef to <8 x double> | 493 | %r225 = sitofp <8 x i16> undef to <8 x double> | ||

494 | ; CHECK: Found an estimated cost of 32 for instruction: %r226 = uitofp <8 x i16> undef to <8 x double> | 494 | ; CHECK: Found an estimated cost of 15 for instruction: %r226 = uitofp <8 x i16> undef to <8 x double> | ||

495 | %r226 = uitofp <8 x i16> undef to <8 x double> | 495 | %r226 = uitofp <8 x i16> undef to <8 x double> | ||

496 | ; CHECK: Found an estimated cost of 32 for instruction: %r227 = sitofp <8 x i16> undef to <8 x double> | 496 | ; CHECK: Found an estimated cost of 15 for instruction: %r227 = sitofp <8 x i16> undef to <8 x double> | ||

497 | %r227 = sitofp <8 x i16> undef to <8 x double> | 497 | %r227 = sitofp <8 x i16> undef to <8 x double> | ||

498 | ; CHECK: Found an estimated cost of 96 for instruction: %r228 = uitofp <8 x i64> undef to <8 x double> | 498 | ; CHECK: Found an estimated cost of 99 for instruction: %r228 = uitofp <8 x i64> undef to <8 x double> | ||

499 | %r228 = uitofp <8 x i64> undef to <8 x double> | 499 | %r228 = uitofp <8 x i64> undef to <8 x double> | ||

500 | ; CHECK: Found an estimated cost of 96 for instruction: %r229 = sitofp <8 x i64> undef to <8 x double> | 500 | ; CHECK: Found an estimated cost of 99 for instruction: %r229 = sitofp <8 x i64> undef to <8 x double> | ||

501 | %r229 = sitofp <8 x i64> undef to <8 x double> | 501 | %r229 = sitofp <8 x i64> undef to <8 x double> | ||

502 | 502 | | |||

503 | ; CHECK: Found an estimated cost of 96 for instruction: %r230 = uitofp <16 x i1> undef to <16 x float> | 503 | ; CHECK: Found an estimated cost of 15 for instruction: %r230 = uitofp <16 x i1> undef to <16 x float> | ||

504 | %r230 = uitofp <16 x i1> undef to <16 x float> | 504 | %r230 = uitofp <16 x i1> undef to <16 x float> | ||

505 | ; CHECK: Found an estimated cost of 96 for instruction: %r231 = sitofp <16 x i1> undef to <16 x float> | 505 | ; CHECK: Found an estimated cost of 15 for instruction: %r231 = sitofp <16 x i1> undef to <16 x float> | ||

506 | %r231 = sitofp <16 x i1> undef to <16 x float> | 506 | %r231 = sitofp <16 x i1> undef to <16 x float> | ||

507 | ; CHECK: Found an estimated cost of 96 for instruction: %r232 = uitofp <16 x i8> undef to <16 x float> | 507 | ; CHECK: Found an estimated cost of 15 for instruction: %r232 = uitofp <16 x i8> undef to <16 x float> | ||

508 | %r232 = uitofp <16 x i8> undef to <16 x float> | 508 | %r232 = uitofp <16 x i8> undef to <16 x float> | ||

509 | ; CHECK: Found an estimated cost of 96 for instruction: %r233 = sitofp <16 x i8> undef to <16 x float> | 509 | ; CHECK: Found an estimated cost of 15 for instruction: %r233 = sitofp <16 x i8> undef to <16 x float> | ||

510 | %r233 = sitofp <16 x i8> undef to <16 x float> | 510 | %r233 = sitofp <16 x i8> undef to <16 x float> | ||

511 | ; CHECK: Found an estimated cost of 8 for instruction: %r234 = uitofp <16 x i16> undef to <16 x float> | 511 | ; CHECK: Found an estimated cost of 8 for instruction: %r234 = uitofp <16 x i16> undef to <16 x float> | ||

512 | %r234 = uitofp <16 x i16> undef to <16 x float> | 512 | %r234 = uitofp <16 x i16> undef to <16 x float> | ||

513 | ; CHECK: Found an estimated cost of 8 for instruction: %r235 = sitofp <16 x i16> undef to <16 x float> | 513 | ; CHECK: Found an estimated cost of 8 for instruction: %r235 = sitofp <16 x i16> undef to <16 x float> | ||

514 | %r235 = sitofp <16 x i16> undef to <16 x float> | 514 | %r235 = sitofp <16 x i16> undef to <16 x float> | ||

515 | ; CHECK: Found an estimated cost of 4 for instruction: %r236 = uitofp <16 x i32> undef to <16 x float> | 515 | ; CHECK: Found an estimated cost of 4 for instruction: %r236 = uitofp <16 x i32> undef to <16 x float> | ||

516 | %r236 = uitofp <16 x i32> undef to <16 x float> | 516 | %r236 = uitofp <16 x i32> undef to <16 x float> | ||

517 | ; CHECK: Found an estimated cost of 4 for instruction: %r237 = sitofp <16 x i32> undef to <16 x float> | 517 | ; CHECK: Found an estimated cost of 4 for instruction: %r237 = sitofp <16 x i32> undef to <16 x float> | ||

518 | %r237 = sitofp <16 x i32> undef to <16 x float> | 518 | %r237 = sitofp <16 x i32> undef to <16 x float> | ||

519 | ; CHECK: Found an estimated cost of 224 for instruction: %r238 = uitofp <16 x i64> undef to <16 x float> | 519 | ; CHECK: Found an estimated cost of 231 for instruction: %r238 = uitofp <16 x i64> undef to <16 x float> | ||

520 | %r238 = uitofp <16 x i64> undef to <16 x float> | 520 | %r238 = uitofp <16 x i64> undef to <16 x float> | ||

521 | ; CHECK: Found an estimated cost of 224 for instruction: %r239 = sitofp <16 x i64> undef to <16 x float> | 521 | ; CHECK: Found an estimated cost of 231 for instruction: %r239 = sitofp <16 x i64> undef to <16 x float> | ||

522 | %r239 = sitofp <16 x i64> undef to <16 x float> | 522 | %r239 = sitofp <16 x i64> undef to <16 x float> | ||

523 | 523 | | |||

524 | ; CHECK: Found an estimated cost of 64 for instruction: %r240 = uitofp <16 x i1> undef to <16 x double> | 524 | ; CHECK: Found an estimated cost of 71 for instruction: %r240 = uitofp <16 x i1> undef to <16 x double> | ||

525 | %r240 = uitofp <16 x i1> undef to <16 x double> | 525 | %r240 = uitofp <16 x i1> undef to <16 x double> | ||

526 | ; CHECK: Found an estimated cost of 64 for instruction: %r241 = sitofp <16 x i1> undef to <16 x double> | 526 | ; CHECK: Found an estimated cost of 71 for instruction: %r241 = sitofp <16 x i1> undef to <16 x double> | ||

527 | %r241 = sitofp <16 x i1> undef to <16 x double> | 527 | %r241 = sitofp <16 x i1> undef to <16 x double> | ||

528 | ; CHECK: Found an estimated cost of 64 for instruction: %r242 = uitofp <16 x i8> undef to <16 x double> | 528 | ; CHECK: Found an estimated cost of 39 for instruction: %r242 = uitofp <16 x i8> undef to <16 x double> | ||

529 | %r242 = uitofp <16 x i8> undef to <16 x double> | 529 | %r242 = uitofp <16 x i8> undef to <16 x double> | ||

530 | ; CHECK: Found an estimated cost of 64 for instruction: %r243 = sitofp <16 x i8> undef to <16 x double> | 530 | ; CHECK: Found an estimated cost of 39 for instruction: %r243 = sitofp <16 x i8> undef to <16 x double> | ||

531 | %r243 = sitofp <16 x i8> undef to <16 x double> | 531 | %r243 = sitofp <16 x i8> undef to <16 x double> | ||

532 | ; CHECK: Found an estimated cost of 64 for instruction: %r244 = uitofp <16 x i16> undef to <16 x double> | 532 | ; CHECK: Found an estimated cost of 31 for instruction: %r244 = uitofp <16 x i16> undef to <16 x double> | ||

533 | %r244 = uitofp <16 x i16> undef to <16 x double> | 533 | %r244 = uitofp <16 x i16> undef to <16 x double> | ||

534 | ; CHECK: Found an estimated cost of 64 for instruction: %r245 = sitofp <16 x i16> undef to <16 x double> | 534 | ; CHECK: Found an estimated cost of 31 for instruction: %r245 = sitofp <16 x i16> undef to <16 x double> | ||

535 | %r245 = sitofp <16 x i16> undef to <16 x double> | 535 | %r245 = sitofp <16 x i16> undef to <16 x double> | ||

536 | ; CHECK: Found an estimated cost of 64 for instruction: %r246 = uitofp <16 x i16> undef to <16 x double> | 536 | ; CHECK: Found an estimated cost of 31 for instruction: %r246 = uitofp <16 x i16> undef to <16 x double> | ||

537 | %r246 = uitofp <16 x i16> undef to <16 x double> | 537 | %r246 = uitofp <16 x i16> undef to <16 x double> | ||

538 | ; CHECK: Found an estimated cost of 64 for instruction: %r247 = sitofp <16 x i16> undef to <16 x double> | 538 | ; CHECK: Found an estimated cost of 31 for instruction: %r247 = sitofp <16 x i16> undef to <16 x double> | ||

539 | %r247 = sitofp <16 x i16> undef to <16 x double> | 539 | %r247 = sitofp <16 x i16> undef to <16 x double> | ||

540 | ; CHECK: Found an estimated cost of 192 for instruction: %r248 = uitofp <16 x i64> undef to <16 x double> | 540 | ; CHECK: Found an estimated cost of 199 for instruction: %r248 = uitofp <16 x i64> undef to <16 x double> | ||

541 | %r248 = uitofp <16 x i64> undef to <16 x double> | 541 | %r248 = uitofp <16 x i64> undef to <16 x double> | ||

542 | ; CHECK: Found an estimated cost of 192 for instruction: %r249 = sitofp <16 x i64> undef to <16 x double> | 542 | ; CHECK: Found an estimated cost of 199 for instruction: %r249 = sitofp <16 x i64> undef to <16 x double> | ||

543 | %r249 = sitofp <16 x i64> undef to <16 x double> | 543 | %r249 = sitofp <16 x i64> undef to <16 x double> | ||

544 | 544 | | |||

545 | ; CHECK: Found an estimated cost of 0 for instruction: ret i32 undef | 545 | ; CHECK: Found an estimated cost of 0 for instruction: ret i32 undef | ||

546 | ret i32 undef | 546 | ret i32 undef | ||

547 | } | 547 | } | ||

548 | 548 | |

LGTM, but it looks to me like this should be adding 0, so not increasing by 1?