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(ptr %ptr) {
8 ; CHECK: vllezlf %v24, 0(%r2)
10 %val = load i32, ptr %ptr
11 %ret = insertelement <4 x i32> zeroinitializer, i32 %val, i32 0
15 ; Test VLLEZLF with a float.
16 define <4 x float> @f2(ptr %ptr) {
18 ; CHECK: vllezlf %v24, 0(%r2)
20 %val = load float, ptr %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(ptr %ptr, ptr %res) {
28 ; CHECK: vllezlf [[REG:%v[0-9]+]], 0(%r2)
29 ; CHECK: vst [[REG]], 0(%r3)
31 %val = load float, ptr %ptr
32 %ret = insertelement <4 x float> zeroinitializer, float %val, i32 0
33 store <4 x float> %ret, ptr %res