1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s
4 define <4 x double> @test1(<4 x double> %A, <4 x double> %B) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
10 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 undef, i32 1, i32 undef, i32 5>
14 define <4 x double> @test2(<4 x double> %A, <4 x double> %B) {
16 ; CHECK: # %bb.0: # %entry
17 ; CHECK-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
20 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 undef, i32 1, i32 undef, i32 1>
24 define <4 x double> @test3(<4 x double> %A, <4 x double> %B) {
26 ; CHECK: # %bb.0: # %entry
27 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
30 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 0, i32 1, i32 undef, i32 5>
34 define <4 x double> @test4(<4 x double> %A, <4 x double> %B) {
36 ; CHECK: # %bb.0: # %entry
37 ; CHECK-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
40 %0 = shufflevector <4 x double> %A, <4 x double> %B, <4 x i32> <i32 0, i32 1, i32 undef, i32 1>