diff options
author | Michael Liao <michael.liao@intel.com> | 2012-08-20 17:59:18 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2012-08-20 17:59:18 +0000 |
commit | 24438b83595dd243e4562912750ef15438787a42 (patch) | |
tree | 95260fb177c730b6c13e83a72219b95fc2f77870 /test | |
parent | b862f094b78e3176813903f63c0e78b6e0e7852b (diff) | |
download | external_llvm-24438b83595dd243e4562912750ef15438787a42.zip external_llvm-24438b83595dd243e4562912750ef15438787a42.tar.gz external_llvm-24438b83595dd243e4562912750ef15438787a42.tar.bz2 |
fix a case where all operands of BUILD_VECTOR are undefined
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/pr11334.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr11334.ll b/test/CodeGen/X86/pr11334.ll index 5b7b5ea..e7e29e0 100644 --- a/test/CodeGen/X86/pr11334.ll +++ b/test/CodeGen/X86/pr11334.ll @@ -54,3 +54,11 @@ entry: %f1 = fpext <8 x float> %v1 to <8 x double> ret <8 x double> %f1 } + +define void @test_vector_creation() nounwind { + %1 = insertelement <4 x double> undef, double 0.000000e+00, i32 2 + %2 = load double addrspace(1)* null + %3 = insertelement <4 x double> %1, double %2, i32 3 + store <4 x double> %3, <4 x double>* undef + ret void +} |