brintos

brintos / llvm-project-archived public Read only

0
0
Text · 940 B · 9b1ab21 Raw
28 lines · plain
1; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-P8 -check-prefix=CHECK2; RUN: llc -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-P7 -check-prefix=CHECK3 4define <4 x float> @test1(float %a) {5entry:6; CHECK-LABEL: test17  %vecins = insertelement <4 x float> undef, float %a, i32 08  %vecins1 = insertelement <4 x float> %vecins, float %a, i32 19  %vecins2 = insertelement <4 x float> %vecins1, float %a, i32 210  %vecins3 = insertelement <4 x float> %vecins2, float %a, i32 311  ret <4 x float> %vecins312; CHECK-P8: xscvdpspn13; CHECK-P7-NOT: xscvdpspn14; CHECK: blr15}16 17define <2 x double> @test2(double %a) {18entry:19; CHECK-LABEL: test220  %vecins = insertelement <2 x double> undef, double %a, i32 021  %vecins1 = insertelement <2 x double> %vecins, double %a, i32 122  ret <2 x double> %vecins123; CHECK-P8: xxspltd24; CHECK-P7: xxspltd25; CHECK: blr26}27 28