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
4 define <4 x float> @test1(float %a) {
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
13 ; CHECK-P7-NOT: xscvdpspn
17 define <2 x double> @test2(double %a) {
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