1 ; Test insertions of memory values into 0 on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
6 define <4 x i32> @f1(i32 *%ptr) {
8 ; CHECK: vllezlf %v24, 0(%r2)
10 %val = load i32, i32 *%ptr
11 %ret = insertelement <4 x i32> zeroinitializer, i32 %val, i32 0
15 ; Test VLLEZLF with a float.
16 define <4 x float> @f2(float *%ptr) {
18 ; CHECK: vllezlf %v24, 0(%r2)
20 %val = load float, float *%ptr
21 %ret = insertelement <4 x float> zeroinitializer, float %val, i32 0
25 ; Test VLLEZLF with a float when the result is stored to memory.
26 define void @f3(float *%ptr, <4 x float> *%res) {
28 ; CHECK: vllezlf [[REG:%v[0-9]+]], 0(%r2)
29 ; CHECK: vst [[REG]], 0(%r3)
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