; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -mtriple=x86_64-apple-darwin -passes="print" 2>&1 -disable-output -cost-kind=latency -mattr=+sse2 | FileCheck %s -check-prefixes=SSE ; RUN: opt < %s -mtriple=x86_64-unknown-linux -mcpu=corei7-avx -passes="print" 2>&1 -disable-output | FileCheck %s -check-prefixes=AVX define void @test() { ; SSE-LABEL: 'test' ; SSE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %matins.2.2 = shufflevector <9 x double> undef, <9 x double> undef, <9 x i32> ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void ; ; AVX-LABEL: 'test' ; AVX-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %matins.2.2 = shufflevector <9 x double> undef, <9 x double> undef, <9 x i32> ; AVX-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; entry: %matins.2.2 = shufflevector <9 x double> undef, <9 x double> undef, <9 x i32> ret void } define <12 x i64> @foo(<12 x i64> noundef %src) { ; SSE-LABEL: 'foo' ; SSE-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %shuffle = shufflevector <12 x i64> %src, <12 x i64> poison, <12 x i32> ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret <12 x i64> %shuffle ; ; AVX-LABEL: 'foo' ; AVX-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %shuffle = shufflevector <12 x i64> %src, <12 x i64> poison, <12 x i32> ; AVX-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret <12 x i64> %shuffle ; entry: %shuffle = shufflevector <12 x i64> %src, <12 x i64> poison, <12 x i32> ret <12 x i64> %shuffle }