; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+sse2 | FileCheck %s --check-prefixes=SSE2 ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+ssse3 | FileCheck %s --check-prefixes=SSSE3 ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+sse4.2 | FileCheck %s --check-prefixes=SSE42 ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+avx | FileCheck %s --check-prefixes=AVX1 ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+avx2 | FileCheck %s --check-prefixes=AVX2 ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+avx512f | FileCheck %s --check-prefixes=AVX512,AVX512F ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+avx512f,+avx512bw | FileCheck %s --check-prefixes=AVX512,AVX512BW ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mattr=+avx512f,+avx512dq | FileCheck %s --check-prefixes=AVX512,AVX512DQ ; ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mcpu=slm | FileCheck %s --check-prefixes=SLM ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mcpu=goldmont | FileCheck %s --check-prefixes=GLM ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mcpu=btver2 | FileCheck %s --check-prefixes=AVX1 ; RUN: opt < %s -passes="print" 2>&1 -disable-output -cost-kind=all -mtriple=x86_64-apple-macosx10.8.0 -mcpu=knl | FileCheck %s --check-prefixes=AVX512,AVX512F ; ; mul vXi8 -> mXi64 ; define void @mul_sext_vXi8(<2 x i8> %a2, <2 x i8> %b2, <4 x i8> %a4, <4 x i8> %b4, <8 x i8> %a8, <8 x i8> %b8, <16 x i8> %a16, <16 x i8> %b16, <32 x i8> %a32, <32 x i8> %b32, <64 x i8> %a64, <64 x i8> %b64) { ; SSE2-LABEL: 'mul_sext_vXi8' ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_sext_vXi8' ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_sext_vXi8' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_sext_vXi8' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:25 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:25 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:50 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:50 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:19 Lat:15 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:38 Lat:30 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:76 Lat:60 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:96 CodeSize:152 Lat:120 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:192 CodeSize:304 Lat:240 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_sext_vXi8' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:17 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:17 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:34 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:34 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:20 SizeLat:26 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:40 SizeLat:52 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:80 SizeLat:104 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:128 Lat:160 SizeLat:208 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512F-LABEL: 'mul_sext_vXi8' ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512F-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512F-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512F-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512BW-LABEL: 'mul_sext_vXi8' ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512DQ-LABEL: 'mul_sext_vXi8' ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:15 SizeLat:3 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:30 SizeLat:6 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:60 SizeLat:12 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:120 SizeLat:24 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_sext_vXi8' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:17 CodeSize:9 Lat:22 SizeLat:9 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:34 CodeSize:18 Lat:44 SizeLat:18 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:68 CodeSize:36 Lat:88 SizeLat:36 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:136 CodeSize:72 Lat:176 SizeLat:72 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:272 CodeSize:144 Lat:352 SizeLat:144 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:544 CodeSize:288 Lat:704 SizeLat:288 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_sext_vXi8' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i8> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i8> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i8> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i8> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i8> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i8> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = sext <2 x i8> %a2 to <2 x i64> %xb2 = sext <2 x i8> %b2 to <2 x i64> %xa4 = sext <4 x i8> %a4 to <4 x i64> %xb4 = sext <4 x i8> %b4 to <4 x i64> %xa8 = sext <8 x i8> %a8 to <8 x i64> %xb8 = sext <8 x i8> %b8 to <8 x i64> %xa16 = sext <16 x i8> %a16 to <16 x i64> %xb16 = sext <16 x i8> %b16 to <16 x i64> %xa32 = sext <32 x i8> %a32 to <32 x i64> %xb32 = sext <32 x i8> %b32 to <32 x i64> %xa64 = sext <64 x i8> %a64 to <64 x i64> %xb64 = sext <64 x i8> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } define void @mul_zext_vXi8(<2 x i8> %a2, <2 x i8> %b2, <4 x i8> %a4, <4 x i8> %b4, <8 x i8> %a8, <8 x i8> %b8, <16 x i8> %a16, <16 x i8> %b16, <32 x i8> %a32, <32 x i8> %b32, <64 x i8> %a64, <64 x i8> %b64) { ; SSE2-LABEL: 'mul_zext_vXi8' ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_zext_vXi8' ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_zext_vXi8' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_zext_vXi8' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:25 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:25 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:50 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:50 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:5 Lat:5 SizeLat:6 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:12 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:24 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:48 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:96 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_zext_vXi8' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:17 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:17 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:34 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:34 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512-LABEL: 'mul_zext_vXi8' ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_zext_vXi8' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_zext_vXi8' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i8> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i8> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i8> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i8> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i8> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i8> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = zext <2 x i8> %a2 to <2 x i64> %xb2 = zext <2 x i8> %b2 to <2 x i64> %xa4 = zext <4 x i8> %a4 to <4 x i64> %xb4 = zext <4 x i8> %b4 to <4 x i64> %xa8 = zext <8 x i8> %a8 to <8 x i64> %xb8 = zext <8 x i8> %b8 to <8 x i64> %xa16 = zext <16 x i8> %a16 to <16 x i64> %xb16 = zext <16 x i8> %b16 to <16 x i64> %xa32 = zext <32 x i8> %a32 to <32 x i64> %xb32 = zext <32 x i8> %b32 to <32 x i64> %xa64 = zext <64 x i8> %a64 to <64 x i64> %xb64 = zext <64 x i8> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } define void @mul_sext_zext_vXi8(<2 x i8> %a2, <2 x i8> %b2, <4 x i8> %a4, <4 x i8> %b4, <8 x i8> %a8, <8 x i8> %b8, <16 x i8> %a16, <16 x i8> %b16, <32 x i8> %a32, <32 x i8> %b32, <64 x i8> %a64, <64 x i8> %b64) { ; SSE2-LABEL: 'mul_sext_zext_vXi8' ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_sext_zext_vXi8' ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:128 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_sext_zext_vXi8' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_sext_zext_vXi8' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:25 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:25 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:50 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:50 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:19 Lat:15 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:38 Lat:30 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:76 Lat:60 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:96 CodeSize:152 Lat:120 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:192 CodeSize:304 Lat:240 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_sext_zext_vXi8' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:17 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:17 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:34 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:34 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:20 SizeLat:26 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:40 SizeLat:52 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:80 SizeLat:104 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:128 Lat:160 SizeLat:208 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512F-LABEL: 'mul_sext_zext_vXi8' ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512F-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512F-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512F-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512BW-LABEL: 'mul_sext_zext_vXi8' ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512DQ-LABEL: 'mul_sext_zext_vXi8' ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:15 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:15 SizeLat:3 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:30 SizeLat:6 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:60 SizeLat:12 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:120 SizeLat:24 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_sext_zext_vXi8' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:17 CodeSize:9 Lat:22 SizeLat:9 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:34 CodeSize:18 Lat:44 SizeLat:18 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:68 CodeSize:36 Lat:88 SizeLat:36 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:136 CodeSize:72 Lat:176 SizeLat:72 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:272 CodeSize:144 Lat:352 SizeLat:144 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:544 CodeSize:288 Lat:704 SizeLat:288 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_sext_zext_vXi8' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i8> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i8> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i8> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i8> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i8> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i8> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i8> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i8> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i8> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i8> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i8> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i8> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = sext <2 x i8> %a2 to <2 x i64> %xb2 = zext <2 x i8> %b2 to <2 x i64> %xa4 = sext <4 x i8> %a4 to <4 x i64> %xb4 = zext <4 x i8> %b4 to <4 x i64> %xa8 = sext <8 x i8> %a8 to <8 x i64> %xb8 = zext <8 x i8> %b8 to <8 x i64> %xa16 = sext <16 x i8> %a16 to <16 x i64> %xb16 = zext <16 x i8> %b16 to <16 x i64> %xa32 = sext <32 x i8> %a32 to <32 x i64> %xb32 = zext <32 x i8> %b32 to <32 x i64> %xa64 = sext <64 x i8> %a64 to <64 x i64> %xb64 = zext <64 x i8> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } ; ; mul vXi16 -> mXi64 ; define void @mul_sext_vXi16(<2 x i16> %a2, <2 x i16> %b2, <4 x i16> %a4, <4 x i16> %b4, <8 x i16> %a8, <8 x i16> %b8, <16 x i16> %a16, <16 x i16> %b16, <32 x i16> %a32, <32 x i16> %b32, <64 x i16> %a64, <64 x i16> %b64) { ; SSE2-LABEL: 'mul_sext_vXi16' ; SSE2-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_sext_vXi16' ; SSSE3-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:48 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:48 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:96 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:96 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_sext_vXi16' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_sext_vXi16' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:13 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:13 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:26 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:26 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:52 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:52 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:19 Lat:15 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:38 Lat:30 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:76 Lat:60 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:96 CodeSize:152 Lat:120 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:192 CodeSize:304 Lat:240 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_sext_vXi16' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:9 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:9 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:18 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:18 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:36 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:36 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:20 SizeLat:26 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:40 SizeLat:52 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:80 SizeLat:104 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:128 Lat:160 SizeLat:208 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512F-LABEL: 'mul_sext_vXi16' ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512F-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512F-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512F-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512BW-LABEL: 'mul_sext_vXi16' ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512DQ-LABEL: 'mul_sext_vXi16' ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:15 SizeLat:3 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:30 SizeLat:6 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:60 SizeLat:12 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:120 SizeLat:24 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_sext_vXi16' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:17 CodeSize:9 Lat:22 SizeLat:9 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:34 CodeSize:18 Lat:44 SizeLat:18 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:68 CodeSize:36 Lat:88 SizeLat:36 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:136 CodeSize:72 Lat:176 SizeLat:72 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:272 CodeSize:144 Lat:352 SizeLat:144 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:544 CodeSize:288 Lat:704 SizeLat:288 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_sext_vXi16' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i16> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i16> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i16> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i16> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i16> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i16> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = sext <2 x i16> %a2 to <2 x i64> %xb2 = sext <2 x i16> %b2 to <2 x i64> %xa4 = sext <4 x i16> %a4 to <4 x i64> %xb4 = sext <4 x i16> %b4 to <4 x i64> %xa8 = sext <8 x i16> %a8 to <8 x i64> %xb8 = sext <8 x i16> %b8 to <8 x i64> %xa16 = sext <16 x i16> %a16 to <16 x i64> %xb16 = sext <16 x i16> %b16 to <16 x i64> %xa32 = sext <32 x i16> %a32 to <32 x i64> %xb32 = sext <32 x i16> %b32 to <32 x i64> %xa64 = sext <64 x i16> %a64 to <64 x i64> %xb64 = sext <64 x i16> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } define void @mul_zext_vXi16(<2 x i16> %a2, <2 x i16> %b2, <4 x i16> %a4, <4 x i16> %b4, <8 x i16> %a8, <8 x i16> %b8, <16 x i16> %a16, <16 x i16> %b16, <32 x i16> %a32, <32 x i16> %b32, <64 x i16> %a64, <64 x i16> %b64) { ; SSE2-LABEL: 'mul_zext_vXi16' ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_zext_vXi16' ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_zext_vXi16' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_zext_vXi16' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:13 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:13 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:26 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:26 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:52 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:52 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:5 Lat:5 SizeLat:6 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:12 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:24 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:48 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:96 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_zext_vXi16' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:9 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:9 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:18 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:18 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:36 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:36 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512-LABEL: 'mul_zext_vXi16' ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_zext_vXi16' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_zext_vXi16' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i16> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i16> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i16> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i16> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i16> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i16> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = zext <2 x i16> %a2 to <2 x i64> %xb2 = zext <2 x i16> %b2 to <2 x i64> %xa4 = zext <4 x i16> %a4 to <4 x i64> %xb4 = zext <4 x i16> %b4 to <4 x i64> %xa8 = zext <8 x i16> %a8 to <8 x i64> %xb8 = zext <8 x i16> %b8 to <8 x i64> %xa16 = zext <16 x i16> %a16 to <16 x i64> %xb16 = zext <16 x i16> %b16 to <16 x i64> %xa32 = zext <32 x i16> %a32 to <32 x i64> %xb32 = zext <32 x i16> %b32 to <32 x i64> %xa64 = zext <64 x i16> %a64 to <64 x i64> %xb64 = zext <64 x i16> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } define void @mul_sext_zext_vXi16(<2 x i16> %a2, <2 x i16> %b2, <4 x i16> %a4, <4 x i16> %b4, <8 x i16> %a8, <8 x i16> %b8, <16 x i16> %a16, <16 x i16> %b16, <32 x i16> %a32, <32 x i16> %b32, <64 x i16> %a64, <64 x i16> %b64) { ; SSE2-LABEL: 'mul_sext_zext_vXi16' ; SSE2-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_sext_zext_vXi16' ; SSSE3-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:48 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:96 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_sext_zext_vXi16' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_sext_zext_vXi16' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:13 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:13 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:26 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:26 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:52 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:52 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:19 Lat:15 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:38 Lat:30 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:76 Lat:60 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:96 CodeSize:152 Lat:120 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:192 CodeSize:304 Lat:240 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_sext_zext_vXi16' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:9 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:9 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:18 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:18 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:36 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:36 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:20 SizeLat:26 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:40 SizeLat:52 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:80 SizeLat:104 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:128 Lat:160 SizeLat:208 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512F-LABEL: 'mul_sext_zext_vXi16' ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512F-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512F-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512F-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512BW-LABEL: 'mul_sext_zext_vXi16' ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512DQ-LABEL: 'mul_sext_zext_vXi16' ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:15 SizeLat:3 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:30 SizeLat:6 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:60 SizeLat:12 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:120 SizeLat:24 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_sext_zext_vXi16' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:17 CodeSize:9 Lat:22 SizeLat:9 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:34 CodeSize:18 Lat:44 SizeLat:18 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:68 CodeSize:36 Lat:88 SizeLat:36 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:136 CodeSize:72 Lat:176 SizeLat:72 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:272 CodeSize:144 Lat:352 SizeLat:144 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:544 CodeSize:288 Lat:704 SizeLat:288 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_sext_zext_vXi16' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i16> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i16> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i16> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i16> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i16> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i16> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i16> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i16> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i16> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i16> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i16> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i16> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = sext <2 x i16> %a2 to <2 x i64> %xb2 = zext <2 x i16> %b2 to <2 x i64> %xa4 = sext <4 x i16> %a4 to <4 x i64> %xb4 = zext <4 x i16> %b4 to <4 x i64> %xa8 = sext <8 x i16> %a8 to <8 x i64> %xb8 = zext <8 x i16> %b8 to <8 x i64> %xa16 = sext <16 x i16> %a16 to <16 x i64> %xb16 = zext <16 x i16> %b16 to <16 x i64> %xa32 = sext <32 x i16> %a32 to <32 x i64> %xb32 = zext <32 x i16> %b32 to <32 x i64> %xa64 = sext <64 x i16> %a64 to <64 x i64> %xb64 = zext <64 x i16> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } ; ; mul vXi32 -> mXi64 ; define void @mul_sext_vXi32(<2 x i32> %a2, <2 x i32> %b2, <4 x i32> %a4, <4 x i32> %b4, <8 x i32> %a8, <8 x i32> %b8, <16 x i32> %a16, <16 x i32> %b16, <32 x i32> %a32, <32 x i32> %b32, <64 x i32> %a64, <64 x i32> %b64) { ; SSE2-LABEL: 'mul_sext_vXi32' ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_sext_vXi32' ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_sext_vXi32' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_sext_vXi32' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:28 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:28 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:56 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:56 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:19 Lat:15 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:38 Lat:30 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:76 Lat:60 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:96 CodeSize:152 Lat:120 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:192 CodeSize:304 Lat:240 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_sext_vXi32' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:5 CodeSize:1 Lat:1 SizeLat:1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:5 CodeSize:1 Lat:1 SizeLat:1 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:10 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:10 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:20 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:20 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:40 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:40 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:20 SizeLat:26 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:40 SizeLat:52 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:80 SizeLat:104 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:128 Lat:160 SizeLat:208 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512F-LABEL: 'mul_sext_vXi32' ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512F-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512F-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512F-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512BW-LABEL: 'mul_sext_vXi32' ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512DQ-LABEL: 'mul_sext_vXi32' ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:15 SizeLat:3 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:30 SizeLat:6 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:60 SizeLat:12 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:120 SizeLat:24 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_sext_vXi32' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:17 CodeSize:9 Lat:22 SizeLat:9 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:34 CodeSize:18 Lat:44 SizeLat:18 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:68 CodeSize:36 Lat:88 SizeLat:36 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:136 CodeSize:72 Lat:176 SizeLat:72 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:272 CodeSize:144 Lat:352 SizeLat:144 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:544 CodeSize:288 Lat:704 SizeLat:288 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_sext_vXi32' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = sext <2 x i32> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = sext <4 x i32> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = sext <8 x i32> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = sext <16 x i32> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = sext <32 x i32> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = sext <64 x i32> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = sext <2 x i32> %a2 to <2 x i64> %xb2 = sext <2 x i32> %b2 to <2 x i64> %xa4 = sext <4 x i32> %a4 to <4 x i64> %xb4 = sext <4 x i32> %b4 to <4 x i64> %xa8 = sext <8 x i32> %a8 to <8 x i64> %xb8 = sext <8 x i32> %b8 to <8 x i64> %xa16 = sext <16 x i32> %a16 to <16 x i64> %xb16 = sext <16 x i32> %b16 to <16 x i64> %xa32 = sext <32 x i32> %a32 to <32 x i64> %xb32 = sext <32 x i32> %b32 to <32 x i64> %xa64 = sext <64 x i32> %a64 to <64 x i64> %xb64 = sext <64 x i32> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } define void @mul_zext_vXi32(<2 x i32> %a2, <2 x i32> %b2, <4 x i32> %a4, <4 x i32> %b4, <8 x i32> %a8, <8 x i32> %b8, <16 x i32> %a16, <16 x i32> %b16, <32 x i32> %a32, <32 x i32> %b32, <64 x i32> %a64, <64 x i32> %b64) { ; SSE2-LABEL: 'mul_zext_vXi32' ; SSE2-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_zext_vXi32' ; SSSE3-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_zext_vXi32' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_zext_vXi32' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:28 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:28 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:56 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:56 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:5 Lat:5 SizeLat:6 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:12 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:24 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:48 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:96 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_zext_vXi32' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:5 CodeSize:1 Lat:1 SizeLat:1 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:5 CodeSize:1 Lat:1 SizeLat:1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:10 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:10 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:20 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:20 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:40 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:40 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512-LABEL: 'mul_zext_vXi32' ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; AVX512-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_zext_vXi32' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_zext_vXi32' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = zext <2 x i32> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = zext <4 x i32> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = zext <8 x i32> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = zext <16 x i32> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = zext <32 x i32> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = zext <64 x i32> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:5 SizeLat:1 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:10 SizeLat:2 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:4 CodeSize:4 Lat:20 SizeLat:4 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:8 CodeSize:8 Lat:40 SizeLat:8 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:16 CodeSize:16 Lat:80 SizeLat:16 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:32 CodeSize:32 Lat:160 SizeLat:32 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = zext <2 x i32> %a2 to <2 x i64> %xb2 = zext <2 x i32> %b2 to <2 x i64> %xa4 = zext <4 x i32> %a4 to <4 x i64> %xb4 = zext <4 x i32> %b4 to <4 x i64> %xa8 = zext <8 x i32> %a8 to <8 x i64> %xb8 = zext <8 x i32> %b8 to <8 x i64> %xa16 = zext <16 x i32> %a16 to <16 x i64> %xb16 = zext <16 x i32> %b16 to <16 x i64> %xa32 = zext <32 x i32> %a32 to <32 x i64> %xb32 = zext <32 x i32> %b32 to <32 x i64> %xa64 = zext <64 x i32> %a64 to <64 x i64> %xb64 = zext <64 x i32> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void } define void @mul_sext_zext_vXi32(<2 x i32> %a2, <2 x i32> %b2, <4 x i32> %a4, <4 x i32> %b4, <8 x i32> %a8, <8 x i32> %b8, <16 x i32> %a16, <16 x i32> %b16, <32 x i32> %a32, <32 x i32> %b32, <64 x i32> %a64, <64 x i32> %b64) { ; SSE2-LABEL: 'mul_sext_zext_vXi32' ; SSE2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SSE2-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE2-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE2-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE2-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE2-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE2-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSSE3-LABEL: 'mul_sext_zext_vXi32' ; SSSE3-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:4 CodeSize:2 Lat:2 SizeLat:2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:16 CodeSize:8 Lat:8 SizeLat:8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:32 CodeSize:16 Lat:16 SizeLat:16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:64 CodeSize:32 Lat:32 SizeLat:32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SSSE3-NEXT: Cost Model: Found costs of RThru:7 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSSE3-NEXT: Cost Model: Found costs of RThru:14 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSSE3-NEXT: Cost Model: Found costs of RThru:28 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSSE3-NEXT: Cost Model: Found costs of RThru:56 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSSE3-NEXT: Cost Model: Found costs of RThru:112 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSSE3-NEXT: Cost Model: Found costs of RThru:224 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSSE3-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SSE42-LABEL: 'mul_sext_zext_vXi32' ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SSE42-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SSE42-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SSE42-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SSE42-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SSE42-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SSE42-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SSE42-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX1-LABEL: 'mul_sext_zext_vXi32' ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:7 CodeSize:1 Lat:1 SizeLat:1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:14 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:28 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:28 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:56 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:56 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX1-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX1-NEXT: Cost Model: Found costs of RThru:12 CodeSize:19 Lat:15 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX1-NEXT: Cost Model: Found costs of RThru:24 CodeSize:38 Lat:30 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX1-NEXT: Cost Model: Found costs of RThru:48 CodeSize:76 Lat:60 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX1-NEXT: Cost Model: Found costs of RThru:96 CodeSize:152 Lat:120 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX1-NEXT: Cost Model: Found costs of RThru:192 CodeSize:304 Lat:240 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX1-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX2-LABEL: 'mul_sext_zext_vXi32' ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:5 CodeSize:1 Lat:1 SizeLat:1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:5 CodeSize:1 Lat:1 SizeLat:1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:10 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:10 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:20 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:20 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:40 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:40 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX2-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX2-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:20 SizeLat:26 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX2-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:40 SizeLat:52 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX2-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:80 SizeLat:104 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX2-NEXT: Cost Model: Found costs of RThru:96 CodeSize:128 Lat:160 SizeLat:208 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX2-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512F-LABEL: 'mul_sext_zext_vXi32' ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512F-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512F-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512F-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512F-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512F-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512BW-LABEL: 'mul_sext_zext_vXi32' ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:8 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:10 SizeLat:13 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:6 CodeSize:8 Lat:9 SizeLat:8 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:12 CodeSize:16 Lat:18 SizeLat:16 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:24 CodeSize:32 Lat:36 SizeLat:32 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:48 CodeSize:64 Lat:72 SizeLat:64 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512BW-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; AVX512DQ-LABEL: 'mul_sext_zext_vXi32' ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of 1 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:1 SizeLat:1 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:1 Lat:1 SizeLat:1 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:1 Lat:1 SizeLat:1 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res2 = mul <2 x i64> %xa2, %xb2 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:15 SizeLat:3 for: %res4 = mul <4 x i64> %xa4, %xb4 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:3 CodeSize:1 Lat:15 SizeLat:3 for: %res8 = mul <8 x i64> %xa8, %xb8 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:6 CodeSize:2 Lat:30 SizeLat:6 for: %res16 = mul <16 x i64> %xa16, %xb16 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:60 SizeLat:12 for: %res32 = mul <32 x i64> %xa32, %xb32 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:24 CodeSize:8 Lat:120 SizeLat:24 for: %res64 = mul <64 x i64> %xa64, %xb64 ; AVX512DQ-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; SLM-LABEL: 'mul_sext_zext_vXi32' ; SLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; SLM-NEXT: Cost Model: Found costs of RThru:17 CodeSize:9 Lat:22 SizeLat:9 for: %res2 = mul <2 x i64> %xa2, %xb2 ; SLM-NEXT: Cost Model: Found costs of RThru:34 CodeSize:18 Lat:44 SizeLat:18 for: %res4 = mul <4 x i64> %xa4, %xb4 ; SLM-NEXT: Cost Model: Found costs of RThru:68 CodeSize:36 Lat:88 SizeLat:36 for: %res8 = mul <8 x i64> %xa8, %xb8 ; SLM-NEXT: Cost Model: Found costs of RThru:136 CodeSize:72 Lat:176 SizeLat:72 for: %res16 = mul <16 x i64> %xa16, %xb16 ; SLM-NEXT: Cost Model: Found costs of RThru:272 CodeSize:144 Lat:352 SizeLat:144 for: %res32 = mul <32 x i64> %xa32, %xb32 ; SLM-NEXT: Cost Model: Found costs of RThru:544 CodeSize:288 Lat:704 SizeLat:288 for: %res64 = mul <64 x i64> %xa64, %xb64 ; SLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; ; GLM-LABEL: 'mul_sext_zext_vXi32' ; GLM-NEXT: Cost Model: Found costs of 1 for: %xa2 = sext <2 x i32> %a2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 1 for: %xb2 = zext <2 x i32> %b2 to <2 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xa4 = sext <4 x i32> %a4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 2 for: %xb4 = zext <4 x i32> %b4 to <4 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xa8 = sext <8 x i32> %a8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 4 for: %xb8 = zext <8 x i32> %b8 to <8 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xa16 = sext <16 x i32> %a16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 8 for: %xb16 = zext <16 x i32> %b16 to <16 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xa32 = sext <32 x i32> %a32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 16 for: %xb32 = zext <32 x i32> %b32 to <32 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xa64 = sext <64 x i32> %a64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of 32 for: %xb64 = zext <64 x i32> %b64 to <64 x i64> ; GLM-NEXT: Cost Model: Found costs of RThru:6 CodeSize:10 Lat:10 SizeLat:10 for: %res2 = mul <2 x i64> %xa2, %xb2 ; GLM-NEXT: Cost Model: Found costs of RThru:12 CodeSize:20 Lat:20 SizeLat:20 for: %res4 = mul <4 x i64> %xa4, %xb4 ; GLM-NEXT: Cost Model: Found costs of RThru:24 CodeSize:40 Lat:40 SizeLat:40 for: %res8 = mul <8 x i64> %xa8, %xb8 ; GLM-NEXT: Cost Model: Found costs of RThru:48 CodeSize:80 Lat:80 SizeLat:80 for: %res16 = mul <16 x i64> %xa16, %xb16 ; GLM-NEXT: Cost Model: Found costs of RThru:96 CodeSize:160 Lat:160 SizeLat:160 for: %res32 = mul <32 x i64> %xa32, %xb32 ; GLM-NEXT: Cost Model: Found costs of RThru:192 CodeSize:320 Lat:320 SizeLat:320 for: %res64 = mul <64 x i64> %xa64, %xb64 ; GLM-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %xa2 = sext <2 x i32> %a2 to <2 x i64> %xb2 = zext <2 x i32> %b2 to <2 x i64> %xa4 = sext <4 x i32> %a4 to <4 x i64> %xb4 = zext <4 x i32> %b4 to <4 x i64> %xa8 = sext <8 x i32> %a8 to <8 x i64> %xb8 = zext <8 x i32> %b8 to <8 x i64> %xa16 = sext <16 x i32> %a16 to <16 x i64> %xb16 = zext <16 x i32> %b16 to <16 x i64> %xa32 = sext <32 x i32> %a32 to <32 x i64> %xb32 = zext <32 x i32> %b32 to <32 x i64> %xa64 = sext <64 x i32> %a64 to <64 x i64> %xb64 = zext <64 x i32> %b64 to <64 x i64> %res2 = mul <2 x i64> %xa2, %xb2 %res4 = mul <4 x i64> %xa4, %xb4 %res8 = mul <8 x i64> %xa8, %xb8 %res16 = mul <16 x i64> %xa16, %xb16 %res32 = mul <32 x i64> %xa32, %xb32 %res64 = mul <64 x i64> %xa64, %xb64 ret void }