1; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-P8 -check-prefix=CHECK 2; RUN: llc -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-P7 -check-prefix=CHECK 3 4define <4 x float> @test1(float %a) { 5entry: 6; CHECK-LABEL: test1 7 %vecins = insertelement <4 x float> undef, float %a, i32 0 8 %vecins1 = insertelement <4 x float> %vecins, float %a, i32 1 9 %vecins2 = insertelement <4 x float> %vecins1, float %a, i32 2 10 %vecins3 = insertelement <4 x float> %vecins2, float %a, i32 3 11 ret <4 x float> %vecins3 12; CHECK-P8: xscvdpspn 13; CHECK-P7-NOT: xscvdpspn 14; CHECK: blr 15} 16 17define <2 x double> @test2(double %a) { 18entry: 19; CHECK-LABEL: test2 20 %vecins = insertelement <2 x double> undef, double %a, i32 0 21 %vecins1 = insertelement <2 x double> %vecins, double %a, i32 1 22 ret <2 x double> %vecins1 23; CHECK-P8: xxspltd 24; CHECK-P7: xxspltd 25; CHECK: blr 26} 27 28