diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-06-22 18:55:03 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-06-22 18:55:03 +0000 |
commit | 6208a2fd66f305905cee09bd9dabf3f16dba91d7 (patch) | |
tree | ca285ec1e6fbc534eda58be337c6413b99636077 /llvm/test/CodeGen/ARM/constants.ll | |
parent | bb9a5e6df1ff42c595f09facaf9db6430b1a5a70 (diff) | |
download | bcm5719-llvm-6208a2fd66f305905cee09bd9dabf3f16dba91d7.tar.gz bcm5719-llvm-6208a2fd66f305905cee09bd9dabf3f16dba91d7.zip |
Emit trailing padding on constant vectors when TargetData says that the vector
is larger than the sum of the elements (including per-element padding).
llvm-svn: 133631
Diffstat (limited to 'llvm/test/CodeGen/ARM/constants.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/constants.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/constants.ll b/llvm/test/CodeGen/ARM/constants.ll index 7893df78205..60908957ae4 100644 --- a/llvm/test/CodeGen/ARM/constants.ll +++ b/llvm/test/CodeGen/ARM/constants.ll @@ -44,3 +44,16 @@ define void @f7(i32 %a) { r: ret void } + +%t1 = type { <3 x float>, <3 x float> } + +@const1 = global %t1 { <3 x float> zeroinitializer, + <3 x float> <float 1.000000e+00, + float 2.000000e+00, + float 3.000000e+00> }, align 16 +; CHECK: const1 +; CHECK: .zero 16 +; CHECK: float 1.0 +; CHECK: float 2.0 +; CHECK: float 3.0 +; CHECK: .zero 4 |