@@ -4314,3 +4314,66 @@ define void @uitofp() {
4314
4314
4315
4315
ret void
4316
4316
}
4317
+
4318
+ define void @oddvec_sizes () {
4319
+ ; CHECK-LABEL: 'oddvec_sizes'
4320
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %1 = sext <3 x i8> undef to <3 x i16>
4321
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %2 = sext <7 x i8> undef to <7 x i32>
4322
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 45 for instruction: %3 = sext <15 x i8> undef to <15 x i32>
4323
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %4 = zext <3 x i8> undef to <3 x i16>
4324
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %5 = zext <7 x i8> undef to <7 x i32>
4325
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 45 for instruction: %6 = zext <15 x i8> undef to <15 x i32>
4326
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %7 = trunc <3 x i32> undef to <3 x i8>
4327
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %8 = trunc <7 x i32> undef to <7 x i8>
4328
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 30 for instruction: %9 = trunc <15 x i32> undef to <15 x i8>
4329
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %10 = bitcast <3 x i32> undef to <3 x float>
4330
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %11 = bitcast <7 x i32> undef to <7 x float>
4331
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %12 = bitcast <15 x i32> undef to <15 x float>
4332
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %13 = sitofp <3 x i32> undef to <3 x float>
4333
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %14 = sitofp <7 x i32> undef to <7 x float>
4334
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 45 for instruction: %15 = sitofp <15 x i32> undef to <15 x float>
4335
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %16 = uitofp <3 x i32> undef to <3 x float>
4336
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %17 = uitofp <7 x i32> undef to <7 x float>
4337
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 45 for instruction: %18 = uitofp <15 x i32> undef to <15 x float>
4338
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = fptosi <3 x float> undef to <3 x i32>
4339
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = fptosi <7 x float> undef to <7 x i32>
4340
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = fptosi <15 x float> undef to <15 x i32>
4341
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = fptoui <3 x float> undef to <3 x i32>
4342
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = fptoui <7 x float> undef to <7 x i32>
4343
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %24 = fptoui <15 x float> undef to <15 x i32>
4344
+ ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
4345
+ ;
4346
+ sext <3 x i8 > undef to <3 x i16 >
4347
+ sext <7 x i8 > undef to <7 x i32 >
4348
+ sext <15 x i8 > undef to <15 x i32 >
4349
+
4350
+ zext <3 x i8 > undef to <3 x i16 >
4351
+ zext <7 x i8 > undef to <7 x i32 >
4352
+ zext <15 x i8 > undef to <15 x i32 >
4353
+
4354
+ trunc <3 x i32 > undef to <3 x i8 >
4355
+ trunc <7 x i32 > undef to <7 x i8 >
4356
+ trunc <15 x i32 > undef to <15 x i8 >
4357
+
4358
+ bitcast <3 x i32 > undef to <3 x float >
4359
+ bitcast <7 x i32 > undef to <7 x float >
4360
+ bitcast <15 x i32 > undef to <15 x float >
4361
+
4362
+ sitofp <3 x i32 > undef to <3 x float >
4363
+ sitofp <7 x i32 > undef to <7 x float >
4364
+ sitofp <15 x i32 > undef to <15 x float >
4365
+
4366
+ uitofp <3 x i32 > undef to <3 x float >
4367
+ uitofp <7 x i32 > undef to <7 x float >
4368
+ uitofp <15 x i32 > undef to <15 x float >
4369
+
4370
+ fptosi <3 x float > undef to <3 x i32 >
4371
+ fptosi <7 x float > undef to <7 x i32 >
4372
+ fptosi <15 x float > undef to <15 x i32 >
4373
+
4374
+ fptoui <3 x float > undef to <3 x i32 >
4375
+ fptoui <7 x float > undef to <7 x i32 >
4376
+ fptoui <15 x float > undef to <15 x i32 >
4377
+
4378
+ ret void
4379
+ }
0 commit comments