1; Test insertions of memory values into 0 on z14.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
4
5; Test VLLEZLF.
6define <4 x i32> @f1(i32 *%ptr) {
7; CHECK-LABEL: f1:
8; CHECK: vllezlf %v24, 0(%r2)
9; CHECK: br %r14
10  %val = load i32, i32 *%ptr
11  %ret = insertelement <4 x i32> zeroinitializer, i32 %val, i32 0
12  ret <4 x i32> %ret
13}
14
15; Test VLLEZLF with a float.
16define <4 x float> @f2(float *%ptr) {
17; CHECK-LABEL: f2:
18; CHECK: vllezlf %v24, 0(%r2)
19; CHECK: br %r14
20  %val = load float, float *%ptr
21  %ret = insertelement <4 x float> zeroinitializer, float %val, i32 0
22  ret <4 x float> %ret
23}
24
25; Test VLLEZLF with a float when the result is stored to memory.
26define void @f3(float *%ptr, <4 x float> *%res) {
27; CHECK-LABEL: f3:
28; CHECK: vllezlf [[REG:%v[0-9]+]], 0(%r2)
29; CHECK: vst [[REG]], 0(%r3)
30; CHECK: br %r14
31  %val = load float, float *%ptr
32  %ret = insertelement <4 x float> zeroinitializer, float %val, i32 0
33  store <4 x float> %ret, <4 x float> *%res
34  ret void
35}
36
37