summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-08-08 19:53:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-08-08 19:53:46 +0000
commit71eccb39b8e637653596d87fc58b22f65337b1ad (patch)
treea08882d89b31b1b14fd43e6d6374a7898a3e2448 /clang/test/CodeGen
parent6beca0e1cf416dc2b6bc9553aed49e5aff301c7c (diff)
downloadbcm5719-llvm-71eccb39b8e637653596d87fc58b22f65337b1ad.tar.gz
bcm5719-llvm-71eccb39b8e637653596d87fc58b22f65337b1ad.zip
Fix alignof computation of large arrays on x86_64.
We were exposing the extra alignment given to large arrays. The new behavior matches gcc, which is a good thing since this is a gcc extension. Thanks to Joerg Sonnenberger for noticing it. While at it, centralize the method description in the .h file. llvm-svn: 187999
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/align-x68_64.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/align-x68_64.c b/clang/test/CodeGen/align-x68_64.c
new file mode 100644
index 00000000000..cf128b43433
--- /dev/null
+++ b/clang/test/CodeGen/align-x68_64.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s
+// PR5599
+
+void test1_f(void *);
+
+void test1_g(void) {
+ float x[4];
+ test1_f(x);
+}
+// CHECK: @test1_g
+// CHECK: alloca [4 x float], align 16
OpenPOWER on IntegriCloud