[cfe-commits] r135934 - in /cfe/trunk/test/Sema: align-arm-apcs-gnu.c align-arm-apcs.c align-arm.c
Chad Rosier
mcrosier at apple.com
Mon Jul 25 12:00:01 PDT 2011
Author: mcrosier
Date: Mon Jul 25 14:00:00 2011
New Revision: 135934
URL: http://llvm.org/viewvc/llvm-project?rev=135934&view=rev
Log:
Rename an alignment test to be more precise and add another test for the default
ABI.
Added:
cfe/trunk/test/Sema/align-arm-apcs-gnu.c
- copied, changed from r135928, cfe/trunk/test/Sema/align-arm-apcs.c
cfe/trunk/test/Sema/align-arm.c
Removed:
cfe/trunk/test/Sema/align-arm-apcs.c
Copied: cfe/trunk/test/Sema/align-arm-apcs-gnu.c (from r135928, cfe/trunk/test/Sema/align-arm-apcs.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/align-arm-apcs-gnu.c?p2=cfe/trunk/test/Sema/align-arm-apcs-gnu.c&p1=cfe/trunk/test/Sema/align-arm-apcs.c&r1=135928&r2=135934&rev=135934&view=diff
==============================================================================
--- cfe/trunk/test/Sema/align-arm-apcs.c (original)
+++ cfe/trunk/test/Sema/align-arm-apcs-gnu.c Mon Jul 25 14:00:00 2011
@@ -2,3 +2,15 @@
struct s0 { double f0; int f1; };
char chk0[__alignof__(struct s0) == 4 ? 1 : -1];
+
+double g1;
+short chk1[__alignof__(g1) == 4 ? 1 : -1];
+short chk2[__alignof__(double) == 4 ? 1 : -1];
+
+long long g2;
+short chk1[__alignof__(g2) == 4 ? 1 : -1];
+short chk2[__alignof__(long long) == 4 ? 1 : -1];
+
+_Complex double g3;
+short chk1[__alignof__(g3) == 4 ? 1 : -1];
+short chk2[__alignof__(_Complex double) == 4 ? 1 : -1];
Removed: cfe/trunk/test/Sema/align-arm-apcs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/align-arm-apcs.c?rev=135933&view=auto
==============================================================================
--- cfe/trunk/test/Sema/align-arm-apcs.c (original)
+++ cfe/trunk/test/Sema/align-arm-apcs.c (removed)
@@ -1,4 +0,0 @@
-// RUN: %clang_cc1 -triple arm-unknown-unknown -target-abi apcs-gnu -fsyntax-only -verify %s
-
-struct s0 { double f0; int f1; };
-char chk0[__alignof__(struct s0) == 4 ? 1 : -1];
Added: cfe/trunk/test/Sema/align-arm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/align-arm.c?rev=135934&view=auto
==============================================================================
--- cfe/trunk/test/Sema/align-arm.c (added)
+++ cfe/trunk/test/Sema/align-arm.c Mon Jul 25 14:00:00 2011
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -triple armv7-apple-darwin10 -fsyntax-only -verify %s
+
+double g1;
+short chk1[__alignof__(g1) == 8 ? 1 : -1];
+short chk2[__alignof__(double) == 8 ? 1 : -1];
+
+long long g2;
+short chk1[__alignof__(g2) == 8 ? 1 : -1];
+short chk2[__alignof__(long long) == 8 ? 1 : -1];
+
+_Complex double g3;
+short chk1[__alignof__(g3) == 8 ? 1 : -1];
+short chk2[__alignof__(_Complex double) == 8 ? 1 : -1];
More information about the cfe-commits
mailing list