1 ; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
7 define <16 x float> @test1(<16 x float> %x, float* %br, float %y) nounwind {
9 %rrr2 = insertelement <16 x float> %x, float %rrr, i32 1
10 %rrr3 = insertelement <16 x float> %rrr2, float %y, i32 14
11 ret <16 x float> %rrr3
19 define <8 x double> @test2(<8 x double> %x, double* %br, double %y) nounwind {
20 %rrr = load double* %br
21 %rrr2 = insertelement <8 x double> %x, double %rrr, i32 1
22 %rrr3 = insertelement <8 x double> %rrr2, double %y, i32 6
23 ret <8 x double> %rrr3
30 define <16 x float> @test3(<16 x float> %x) nounwind {
31 %eee = extractelement <16 x float> %x, i32 4
32 %rrr2 = insertelement <16 x float> %x, float %eee, i32 1
33 ret <16 x float> %rrr2
40 define <8 x i64> @test4(<8 x i64> %x) nounwind {
41 %eee = extractelement <8 x i64> %x, i32 4
42 %rrr2 = insertelement <8 x i64> %x, i64 %eee, i32 1
49 define i32 @test5(<4 x float> %x) nounwind {
50 %ef = extractelement <4 x float> %x, i32 3
51 %ei = bitcast float %ef to i32
56 ;CHECK: vextractpsz {{.*}}, (%rdi)
58 define void @test6(<4 x float> %x, float* %out) nounwind {
59 %ef = extractelement <4 x float> %x, i32 3
60 store float %ef, float* %out, align 4