summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/vec-move-18.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/vec-move-18.ll')
-rw-r--r--llvm/test/CodeGen/SystemZ/vec-move-18.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SystemZ/vec-move-18.ll b/llvm/test/CodeGen/SystemZ/vec-move-18.ll
index 5d3d09d83ef..9bb61934ff2 100644
--- a/llvm/test/CodeGen/SystemZ/vec-move-18.ll
+++ b/llvm/test/CodeGen/SystemZ/vec-move-18.ll
@@ -22,3 +22,15 @@ define <4 x float> @f2(float *%ptr) {
ret <4 x float> %ret
}
+; Test VLLEZLF with a float when the result is stored to memory.
+define void @f3(float *%ptr, <4 x float> *%res) {
+; CHECK-LABEL: f3:
+; CHECK: vllezlf [[REG:%v[0-9]+]], 0(%r2)
+; CHECK: vst [[REG]], 0(%r3)
+; CHECK: br %r14
+ %val = load float, float *%ptr
+ %ret = insertelement <4 x float> zeroinitializer, float %val, i32 0
+ store <4 x float> %ret, <4 x float> *%res
+ ret void
+}
+
OpenPOWER on IntegriCloud