diff --git a/test/CodeGen/PowerPC/vec_spat.ll b/test/CodeGen/PowerPC/vec_spat.ll index a06b6253065..ee16cc04b22 100644 --- a/test/CodeGen/PowerPC/vec_spat.ll +++ b/test/CodeGen/PowerPC/vec_spat.ll @@ -1,6 +1,7 @@ ; Test that vectors are scalarized/lowered correctly. ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vspltw | wc -l | grep 2 && ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3 | grep stfs | wc -l | grep 4 +; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsplti | wc -l | grep 2 %f4 = type <4 x float> %i4 = type <4 x int> @@ -29,3 +30,17 @@ void %splat_i4(%i4* %P, %i4* %Q, int %X) { ret void } +void %splat_imm_i32(%i4* %P, %i4* %Q, int %X) { + %q = load %i4* %Q + %R = add %i4 %q, + store %i4 %R, %i4* %P + ret void +} + +void %splat_imm_i16(%i4* %P, %i4* %Q, int %X) { + %q = load %i4* %Q + %R = add %i4 %q, + store %i4 %R, %i4* %P + ret void +} +