summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-09 23:54:42 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-09 23:54:42 +0000
commiteffab8fa2413e96b6a2ce2bbeefe35fe478ee028 (patch)
treef6564d99241a92a034944563d834e18508b19c6e /test
parent21d7fb814adcedc7b2f156e003d2083ad1d8ac6a (diff)
downloadllvm-effab8fa2413e96b6a2ce2bbeefe35fe478ee028.tar.gz
llvm-effab8fa2413e96b6a2ce2bbeefe35fe478ee028.tar.bz2
llvm-effab8fa2413e96b6a2ce2bbeefe35fe478ee028.tar.xz
Splats can contain undef's; make sure to handle them correctly. PR11526.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/vmov.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vmov.ll b/test/CodeGen/ARM/vmov.ll
index 0396a41a35..be95657915 100644
--- a/test/CodeGen/ARM/vmov.ll
+++ b/test/CodeGen/ARM/vmov.ll
@@ -371,3 +371,13 @@ entry:
store <4 x float> <float 3.100000e+01, float 3.100000e+01, float 3.100000e+01, float 3.100000e+01>, <4 x float>* %p, align 4
ret void
}
+
+define void @v_mov_v4f32_undef(<4 x float> * nocapture %p) nounwind {
+entry:
+;CHECK: v_mov_v4f32_undef:
+;CHECK: vmov.f32 q{{.*}}, #1.000000e+00
+ %a = load <4 x float> *%p
+ %b = fadd <4 x float> %a, <float undef, float 1.0, float 1.0, float 1.0>
+ store <4 x float> %b, <4 x float> *%p
+ ret void
+}