aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-15 19:35:07 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-15 19:35:07 +0000
commite4808ed44a0280f439ac977e80031fce28b5abab (patch)
tree55c4d7f669c38a8e19de0377cdba6c301d9fd220
parent1f2d22ab94db71b2f9070a54394956bf64ee83bb (diff)
downloadexternal_llvm-e4808ed44a0280f439ac977e80031fce28b5abab.zip
external_llvm-e4808ed44a0280f439ac977e80031fce28b5abab.tar.gz
external_llvm-e4808ed44a0280f439ac977e80031fce28b5abab.tar.bz2
Make sure global doubles and vectors are aligned properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28805 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/PowerPC/align.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/align.ll b/test/CodeGen/PowerPC/align.ll
new file mode 100644
index 0000000..e2045d7
--- /dev/null
+++ b/test/CodeGen/PowerPC/align.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | grep "align.4" | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep "align.2" | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep "align.3" | wc -l | grep 1
+
+
+%A = global <4 x uint> < uint 10, uint 20, uint 30, uint 40 >
+%B = global float 1.000000e+02
+%C = global double 2.000000e+03
+