1 ; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+avx < %s | FileCheck %s
3 define <4 x double> @test1(<4 x double> %A, <4 x double> %B) {
6 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
9 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 undef, i32 1, i32 undef, i32 5>
13 define <4 x double> @test2(<4 x double> %A, <4 x double> %B) {
16 ; CHECK-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
19 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 undef, i32 1, i32 undef, i32 1>
23 define <4 x double> @test3(<4 x double> %A, <4 x double> %B) {
26 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
29 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 0, i32 1, i32 undef, i32 5>
33 define <4 x double> @test4(<4 x double> %A, <4 x double> %B) {
36 ; CHECK-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
39 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 0, i32 1, i32 undef, i32 1>