1 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
3 ; Test a vector which is built with elements from two loads replicates the
4 ; load with most elements having its value.
9 define void @update(ptr %src1, ptr %src2, ptr %dst) {
11 %tmp = load i32, ptr %src1
12 %tmp1 = load i32, ptr %src2
13 %tmp2 = insertelement <4 x i32> undef, i32 %tmp, i32 0
14 %tmp3 = insertelement <4 x i32> %tmp2, i32 %tmp1, i32 1
15 %tmp4 = insertelement <4 x i32> %tmp3, i32 %tmp1, i32 2
16 %tmp5 = insertelement <4 x i32> %tmp4, i32 %tmp1, i32 3
17 store <4 x i32> %tmp5, ptr %dst