1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -verify-machineinstrs -verify-coalescing -mattr=+sse2 | FileCheck %s --check-prefix=SSE2
3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -verify-machineinstrs -verify-coalescing -mattr=+sse4.1 | FileCheck %s --check-prefix=SSE41
4 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -verify-machineinstrs -verify-coalescing -mattr=+avx | FileCheck %s --check-prefix=AVX
5 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -verify-machineinstrs -verify-coalescing -mattr=+avx512f | FileCheck %s --check-prefix=AVX512
9 define <2 x double> @insert_f64(double %a0, <2 x double> %a1) {
10 ; SSE2-LABEL: insert_f64:
12 ; SSE2-NEXT: shufps {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
15 ; SSE41-LABEL: insert_f64:
17 ; SSE41-NEXT: blendps {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
20 ; AVX-LABEL: insert_f64:
22 ; AVX-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
25 ; AVX512-LABEL: insert_f64:
27 ; AVX512-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
29 %1 = insertelement <2 x double> %a1, double %a0, i32 0
33 define <4 x float> @insert_f32(float %a0, <4 x float> %a1) {
34 ; SSE2-LABEL: insert_f32:
36 ; SSE2-NEXT: movss {{.*#+}} xmm1 = xmm0[0],xmm1[1,2,3]
37 ; SSE2-NEXT: movaps %xmm1, %xmm0
40 ; SSE41-LABEL: insert_f32:
42 ; SSE41-NEXT: blendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3]
45 ; AVX-LABEL: insert_f32:
47 ; AVX-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3]
50 ; AVX512-LABEL: insert_f32:
52 ; AVX512-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3]
54 %1 = insertelement <4 x float> %a1, float %a0, i32 0